Main index | Section 9 | Options |
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_page.h>
vm_page_hold() should only be used for very temporary wiring of a page, as that page will not be considered for paging or reallocation for as long as its hold count is greater than zero. Also note that while wired pages are removed from whatever queue they are on, vm_page_hold() does not affect the location of the page. If it is on a queue prior to the call, it will still be there afterward.
If the page needs to be held for a long period of time, vm_page_wire(9) should be used.
vm_page_unhold() function reduces the hold count on a page. If the hold count is zero it is possible that the page will be freed by the page daemon.
VM_PAGE_HOLD (9) | July 13, 2001 |
Main index | Section 9 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | How do you pronounce UNIX ? You Nix ! | ” |