PMAP_MINCORE(9)
β¨ PMAP_MINCORE(9) β¨
okay bestie, welcome to the Kernel Developer's Manual section 9 π
this one's about pmap_mincore β yes, the 9 means it's a kernel dev page, we're in the deep end now, and you're gonna slay it fr fr π«Ά
πΈ NAME πΈ
pmap_mincore β figure out if a virtual address is actually chillin' in physical memory or not π§
π¦ SYNOPSIS π¦
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
int
pmap_mincore(pmap_t pmap, vm_offset_t addr);
π DESCRIPTION π
So like. The pmap_mincore() function determines if the page at the virtual address addr in the physical map pmap is resident in physical memory. β¨
It's the machine-dependent interface that the mincore(2) system call uses. iykyk π β the generic mincore(2) call taps pmap_mincore() to do the actual platform-specific detective work. no cap.
π RETURN VALUES π
If the page is resident in physical memory, a mask of flags gets returned, and the meaning of those flags is documented over in mincore(2). πβ¨ Otherwise? You get 0. that's it, that's the whole vibe.
β οΈ important things, bestie: thepmapmust exist andaddrmust be mapped into thepmap. If any error occurs, the machine-dependent implementation should return0. don't skip this part, it's lowkey the whole point π
π SEE ALSO π
π AUTHORS π
This manual page was written by Bruce M Simpson <bms@spc.org>. iconic behavior honestly π
and that's a wrap on PMAP_MINCORE(9) from the Kernel Developer's Manual π
this lil gem is courtesy of Debian, dated July 21, 2003 β vintage but still serving β¨ go forth and check your residency, bestie, ily, 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) 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