PMAP_PAGE_EXISTS_QUICK(9)
π PMAP_PAGE_EXISTS_QUICK π
okay bestie, this one lives in section 9 of the Kernel Developer's Manual, and it's literally called pmap_page_exists_quick β yes the name is a whole mouthful, she's giving "I do one thing and I do it fast" energy π
β¨ NAME β¨
pmap_page_exists_quick β determine if a page exists in a physical map π¦
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
boolean_t
pmap_page_exists_quick(pmap_t pmap, vm_page_t m);
β¨ DESCRIPTION β¨
so the way this works is: pmap_page_exists_quick() is your girl for quickly figuring out whether the page m exists in the physical map pmap. that's it. that's the whole job. no cap π
she's typically called from the VM paging code, so likeβ¦ she's not out here doing main character solo work, she's the supporting bestie that the paging code relies on, and honestly? iconic. π
β¨ IMPLEMENTATION NOTES β¨
ngl, the PV count used above may be changed upwards or downwards in future β so don't get too attached to the exact number, bestie, it's giving "we might rearrange the furniture" ποΈβ¨
the only thing that actually has to stay true is this: it's only necessary that TRUE be returned for a small subset of pmaps for proper page aging. that's the vibe. that's the contract. periodt. π
β¨ RETURN VALUES β¨
pmap_page_exists_quick() returns TRUE only if the PV entry for the physical map pmap is one of the first 16 PVs linked from the page m. π
likeβ¦ it's not out here checking every single PV, she's checking the first sixteen and that's the whole point β quick means quick, iykyk π₯
β¨ SEE ALSO β¨
β¨ AUTHORS β¨
this manual page was written by Bruce M Simpson <bms@spc.org> π«Ά
and that's the whole page babes!! she's from Debian, dated July 21, 2003, and she's filed under PMAP_PAGE_EXISTS_QUICK(9) β go forth and check those PVs, bestie πΈπβ¨
π¦ 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) 2003 Bruce M Simpson <bms@spc.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms