Rechercher une page de manuel
vm_page_unhold.9freebsd
Langue: en
Version: 306344 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
BSD mandoc
NAME
vm_page_hold vm_page_unhold - update a page's hold countSYNOPSIS
In sys/param.h In vm/vm.h In vm/vm_page.h Ft void Fn vm_page_hold vm_page_t m Ft void Fn vm_page_unhold vm_page_t mDESCRIPTION
The Fn vm_page_hold function increases the hold count on a page. This prevents the page daemon from freeing the page.Fn 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, Fn 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_wire9 should be used.
Fn 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 ALSO
vm_page_unwire9, vm_page_wire9AUTHORS
This manual page was written by An Chad David Aq davidc@acns.ab.ca .Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre