Query: vm_page_hold
OS: freebsd
Section: 9
Links: freebsd man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
VM_PAGE_HOLD(9) BSD Kernel Developer's Manual VM_PAGE_HOLD(9)NAMEvm_page_hold, vm_page_unhold -- update a page's hold countSYNOPSIS#include <sys/param.h> #include <vm/vm.h> #include <vm/vm_page.h> void vm_page_hold(vm_page_t m); void vm_page_unhold(vm_page_t m);DESCRIPTIONThe vm_page_hold() function increases the hold count on a page. This prevents the page daemon from freeing the page. 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.SEE ALSOvm_page_unwire(9), vm_page_wire(9)AUTHORSThis manual page was written by Chad David <davidc@acns.ab.ca>.BSDJuly 13, 2001 BSD
Related Man Pages |
---|
vm_page_free_zero(9) - debian |
vm_page_free_toq(9) - debian |
vm_page_try_to_free(9) - debian |
vm_page_hold(9) - opensolaris |
vm_page_hold(9) - hpux |
Similar Topics in the Unix Linux Community |
---|
Mac OS X: Based on UNIX - Solid As a Rock |
Memory Leaks |
Is UNIX an open source OS ? |
A simple UNIXtime component in Vue.js |
UNIX Environment Setup - (Just starting!) |