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

Function vm_map_wakeup

freebsd/vm/vm_map.c:862–874  ·  view source on GitHub ↗

* vm_map_wakeup: * * Awaken any threads that have slept on the map using * vm_map_unlock_and_wait(). */

Source from the content-addressed store, hash-verified

860 * vm_map_unlock_and_wait().
861 */
862void
863vm_map_wakeup(vm_map_t map)
864{
865
866 /*
867 * Acquire and release map_sleep_mtx to prevent a wakeup()
868 * from being performed (and lost) between the map unlock
869 * and the msleep() in _vm_map_unlock_and_wait().
870 */
871 mtx_lock(&map_sleep_mtx);
872 mtx_unlock(&map_sleep_mtx);
873 wakeup(&map->root);
874}
875
876void
877vm_map_busy(vm_map_t map)

Callers 3

vm_map_unwireFunction · 0.85
vm_map_wire_lockedFunction · 0.85
kmap_free_wakeupFunction · 0.85

Calls 3

mtx_lockFunction · 0.50
mtx_unlockFunction · 0.50
wakeupFunction · 0.50

Tested by

no test coverage detected