vm_set_page_size(9)

vm_set_page_size9

Initialize the system page size

Usage

#include <sys/param.h>

#include <vm/vm.h>

#include <vm/vm_page.h>

void

vm_set_page_size(void);

Overview

The vm_set_page_size() function initializes the system page size. If cnt.v_page_size (see ⟨sys/vmmeter.h⟩) equals 0, PAGE_SIZE is used; otherwise, the value stored in cnt.v_page_size is used. If cnt.v_page_size is not a power of two, the system will panic.

vm_set_page_size() must be called prior to any page size dependent functions.

Authors

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

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.