---
name: "vm_page_flag"
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_flag"
---

# vm\_page\_flag(9)

change page flags

## NAME

**vm\_page\_flag\_clear**, **vm\_page\_flag\_set** – change page flags

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<vm/vm.h\>**

**#include \<vm/vm\_page.h\>**

*void*\

**vm\_page\_flag\_clear**(*vm\_page\_t m*, *unsigned short bits*);

*void*\

**vm\_page\_flag\_set**(*vm\_page\_t m*, *unsigned short bits*);

## DESCRIPTION

The **vm\_page\_flag\_clear**() atomically clears the specified bits on the page's flags.

The **vm\_page\_flag\_set**() atomically sets the specified bits on the page's flags.

The functions arguments are:

- *m*

  The page whose flags are updated.

- *bits*

  The bits that are set or cleared on the page's flags.

## AUTHORS

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