DOKK / manpages / debian 12 / freebsd-manpages / vm_set_page_size.9freebsd.en
VM_SET_PAGE_SIZE(9) Kernel Developer's Manual VM_SET_PAGE_SIZE(9)

vm_set_page_sizeinitialize the system page size

#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_page.h>

void
vm_set_page_size(void);

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

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

This manual page was written by Chad David <davidc@acns.ab.ca>.

March 21, 2014 Debian