| 718 | } |
| 719 | |
| 720 | void |
| 721 | _vm_map_unlock_read(vm_map_t map, const char *file, int line) |
| 722 | { |
| 723 | |
| 724 | if (map->system_map) { |
| 725 | KASSERT((map->flags & MAP_REPLENISH) == 0, |
| 726 | ("%s: MAP_REPLENISH leaked", __func__)); |
| 727 | mtx_unlock_flags_(&map->system_mtx, 0, file, line); |
| 728 | } else { |
| 729 | sx_sunlock_(&map->lock, file, line); |
| 730 | vm_map_process_deferred(); |
| 731 | } |
| 732 | } |
| 733 | |
| 734 | int |
| 735 | _vm_map_trylock(vm_map_t map, const char *file, int line) |
nothing calls this directly
no test coverage detected