* 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.] */
| 3818 | * [This is the reason for this routine's existence.] |
| 3819 | */ |
| 3820 | static void |
| 3821 | vm_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 | |
| 3838 | static void |
| 3839 | vm_map_entry_deallocate(vm_map_entry_t entry, boolean_t system_map) |
no test coverage detected