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

# pmap\_zero\_area(9)

zero-fill a page using machine-dependent optimizations

## NAME

**pmap\_zero\_page**, **pmap\_zero\_area**, **pmap\_zero\_idle** – zero-fill a page using machine-dependent optimizations

## SYNOPSIS

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

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

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

*void*\

**pmap\_zero\_page**(*vm\_page\_t m*);

*void*\

**pmap\_zero\_page\_area**(*vm\_page\_t m*, *int off*, *int size*);

*void*\

**pmap\_zero\_page\_idle**(*vm\_page\_t m*);

## DESCRIPTION

The **pmap\_zero\_page**() function zero-fills an entire page using machine-dependent optimizations. The **pmap\_zero\_page\_area**() function is used to zero-fill an area of a page. The range specified must not cross a page boundary; it must be contained entirely within a single page.

The **pmap\_zero\_page\_idle**() interface is used by the **vm\_pagezero** process. The system-wide *Giant* lock should not be required to be held in order to call this interface.

## IMPLEMENTATION NOTES

This function is required to be implemented for each architecture supported by FreeBSD.

## SEE ALSO

[bzero(3)](/bzero/3.md), [pmap(9)](/pmap/9.md)

## AUTHORS

This manual page was written by Bruce M Simpson ⟨bms@spc.org⟩.
