VM_SET_PAGE_SIZE(9)
π VM_SET_PAGE_SIZE(9) π
okay bestie, welcome to the Kernel Developer's Manual β this one's vm_set_page_size, and it's literally the moment the kernel decides how big a page is. tiny function, huge consequences, we love a low-key icon. π
β¨ NAME β¨
vm_set_page_size β initialize 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 π
so the vm_set_page_size() function initializes the system page size. that's it, that's the job, and she does it flawlessly. periodt.
here's the tea on how she picks the number π«:
- if
vm_cnt.v_page_size(peep<sys/vmmeter.h>for that one, iykyk) is equal to0, thenPAGE_SIZEgets used instead. - otherwise, the value chillin' inside
vm_cnt.v_page_sizeis the one that gets used. no takebacks.
π¨ okay real talk for a sec: if vm_cnt.v_page_size is not a power of two, the system will panic. not a vibe check, an actual panic. so pls don't hand her a weird number bestie, she will absolutely lose it. π
also, super important: vm_set_page_size() must be called prior to any page size dependent functions. she's the opening act, not the encore. if you let other stuff run before her, that's on you and it's giving chaos. π
π AUTHORS π
This manual page was written by Chad David <davidc@acns.ab.ca>. king behavior honestly, thank you for your service π«Ά
and that's the whole page bestie, no notes β¨ this one came from the Debian manual, dated March 21, 2014 β old but iconic, like a classic. mwah π bye!! π¦πΈπ
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms