---
name: "vm_page_flash"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/vm_page_flash"
---

# vm\_page\_flash(9)

handle the busying and unbusying of a page

## NAME

**vm\_page\_busy**, **vm\_page\_flash**, **vm\_page\_wakeup** – handle the busying and unbusying of a page

## SYNOPSIS

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

## DESCRIPTION

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

**vm\_page\_busy**() sets the PG\_BUSY flag in the page.

**vm\_page\_flash**() checks to see if there is anybody waiting on the page (PG\_WANTED will be set), and if so, clears the PG\_WANTED flag and notifies whoever is waiting via **wakeup**().

**vm\_page\_wakeup**() clears the PG\_BUSY flag on the page, and calls **vm\_page\_flash**() in case somebody has been waiting for it.

## SEE ALSO

[vm\_page\_sleep\_busy(9)](/vm_page_sleep_busy/9.md), [wakeup(9)](/wakeup/9.md)

## AUTHORS

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