Ubuntu Manpages

#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_page.h>

void
vm_page_busy(vm_page_t m);

void
vm_page_flash(vm_page_t m);

void
vm_page_wakeup(vm_page_t m);

These functions handle the busying, unbusying and notification of the unbusying of a page.

() sets the VPO_BUSY flag in the page.

() checks to see if there is anybody waiting on the page (VPO_WANTED will be set), and if so, clears the VPO_WANTED flag and notifies whoever is waiting via ().

() clears the VPO_BUSY flag on the page, and calls vm_page_flash() in case somebody has been waiting for it.

vm_page_sleep_if_busy(9), wakeup(9)

This manual page was written by Chad David ⟨davidc@acns.ab.ca⟩.