vm_page_wakeup(9freebsd)

vm_page_wakeup9freebsd

Handle the busying and unbusying of a page

Usage

#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);

Overview

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

vm_page_busy() sets the VPO_BUSY flag in the page.

vm_page_flash() 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 wakeup().

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

Releases

3 releases since Debian 5.0 (Lenny); the text changed 2 times.

  1. 5.0
  2. 6.0
  3. 7

Authors

This manual page was written by Chad David ⟨[email protected]⟩.

From freebsd-manpages 8.2-1 in Debian 7 (Wheezy). Parsed by carta from the page's mdoc source.