VM_SET_PAGE_SIZE(9)
π NAME π
okay so bestie, welcome to VM_SET_PAGE_SIZE(9) from the Kernel Developer's Manual π
this one is all about vm_set_page_size β the function that literally initializes the system page size β¨
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_page.h>
void
vm_set_page_size(void);
πΈ DESCRIPTION πΈ
The vm_set_page_size() function initializes the system page size. Periodt. π«Ά
Here's the vibe check: if vm_cnt.v_page_size β see <sys/vmmeter.h> β equals 0, then PAGE_SIZE is used. Otherwise, the value stored in vm_cnt.v_page_size is the one that gets used. π
and if vm_cnt.v_page_size is not a power of two? yeah no, the system will panic ππ so pls be careful.
vm_set_page_size() must be called prior to any page size dependent functions. fr fr, do not skip this step π
π«Ά AUTHORS π«Ά
This manual page was written by Chad David <davidc@acns.ab.ca>. iconic behavior, honestly π
cute lil sign-off: this page is from Debian, dated March 21, 2014 ππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms