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

Function vm_map_entry_unwire

freebsd/vm/vm_map.c:3820–3836  ·  view source on GitHub ↗

* vm_map_entry_unwire: [ internal use only ] * * Make the region specified by this entry pageable. * * The map in question should be locked. * [This is the reason for this routine's existence.] */

Source from the content-addressed store, hash-verified

3818 * [This is the reason for this routine's existence.]
3819 */
3820static void
3821vm_map_entry_unwire(vm_map_t map, vm_map_entry_t entry)
3822{
3823 vm_size_t size;
3824
3825 VM_MAP_ASSERT_LOCKED(map);
3826 KASSERT(entry->wired_count > 0,
3827 ("vm_map_entry_unwire: entry %p isn't wired", entry));
3828
3829 size = entry->end - entry->start;
3830 if ((entry->eflags & MAP_ENTRY_USER_WIRED) != 0)
3831 vm_map_wire_user_count_sub(atop(size));
3832 pmap_unwire(map->pmap, entry->start, entry->end);
3833 vm_object_unwire(entry->object.vm_object, entry->offset, size,
3834 PQ_ACTIVE);
3835 entry->wired_count = 0;
3836}
3837
3838static void
3839vm_map_entry_deallocate(vm_map_entry_t entry, boolean_t system_map)

Callers 3

vm_map_unwireFunction · 0.85
vm_map_wire_lockedFunction · 0.85
vm_map_deleteFunction · 0.85

Calls 3

vm_object_unwireFunction · 0.85
pmap_unwireFunction · 0.50

Tested by

no test coverage detected