MCPcopy Create free account
hub / github.com/F-Stack/f-stack / _vm_map_unlock

Function _vm_map_unlock

freebsd/vm/vm_map.c:691–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689#endif /* INVARIANTS */
690
691void
692_vm_map_unlock(vm_map_t map, const char *file, int line)
693{
694
695 VM_MAP_UNLOCK_CONSISTENT(map);
696 if (map->system_map) {
697#ifndef UMA_MD_SMALL_ALLOC
698 if (map == kernel_map && (map->flags & MAP_REPLENISH) != 0) {
699 uma_prealloc(kmapentzone, 1);
700 map->flags &= ~MAP_REPLENISH;
701 }
702#endif
703 mtx_unlock_flags_(&map->system_mtx, 0, file, line);
704 } else {
705 sx_xunlock_(&map->lock, file, line);
706 vm_map_process_deferred();
707 }
708}
709
710void
711_vm_map_lock_read(vm_map_t map, const char *file, int line)

Callers

nothing calls this directly

Calls 2

uma_preallocFunction · 0.85
vm_map_process_deferredFunction · 0.85

Tested by

no test coverage detected