* vm_map_wakeup: * * Awaken any threads that have slept on the map using * vm_map_unlock_and_wait(). */
| 860 | * vm_map_unlock_and_wait(). |
| 861 | */ |
| 862 | void |
| 863 | vm_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 | |
| 876 | void |
| 877 | vm_map_busy(vm_map_t map) |
no test coverage detected