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

Function vm_map_locked

freebsd/vm/vm_map.c:815–823  ·  view source on GitHub ↗

* vm_map_locked: * * Returns a non-zero value if the caller holds a write (exclusive) lock * on the specified map and the value "0" otherwise. */

Source from the content-addressed store, hash-verified

813 * on the specified map and the value "0" otherwise.
814 */
815int
816vm_map_locked(vm_map_t map)
817{
818
819 if (map->system_map)
820 return (mtx_owned(&map->system_mtx));
821 else
822 return (sx_xlocked(&map->lock));
823}
824
825/*
826 * _vm_map_unlock_and_wait:

Callers 2

kmapent_allocFunction · 0.85
vm_map_lookup_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected