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

Function kmap_free_wakeup

freebsd/vm/vm_kern.c:663–674  ·  view source on GitHub ↗

* kmap_free_wakeup: * * Returns memory to a submap of the kernel, and wakes up any processes * waiting for memory in that map. */

Source from the content-addressed store, hash-verified

661 * waiting for memory in that map.
662 */
663void
664kmap_free_wakeup(vm_map_t map, vm_offset_t addr, vm_size_t size)
665{
666
667 vm_map_lock(map);
668 (void) vm_map_delete(map, trunc_page(addr), round_page(addr + size));
669 if (map->needs_wakeup) {
670 map->needs_wakeup = FALSE;
671 vm_map_wakeup(map);
672 }
673 vm_map_unlock(map);
674}
675
676void
677kmem_init_zero_region(void)

Callers

nothing calls this directly

Calls 2

vm_map_deleteFunction · 0.85
vm_map_wakeupFunction · 0.85

Tested by

no test coverage detected