PMAP_RESIDENT_COUNT(9)
π PMAP_RESIDENT_COUNT β bestie edition π
okay so you're here for pmap_resident_count and pmap_wired_count, two lil macros in the Kernel Developer's Manual section 9 that hand you page resident + wiring statistics. no cap. let's get into it π«Ά
β¨ NAME β¨
pmap_resident_count, pmap_wired_count β return page resident and wiring statistics
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
long
pmap_resident_count(pmap_t pmap);
long
pmap_wired_count(pmap_t pmap);
π DESCRIPTION π
okay so here's the tea, bestie: the pmap_resident_count() and pmap_wired_count() macros exist so that pmap consumers can retrieve statistics from the pm_stats member of the machine-dependent structure struct pmap. that's it, that's the whole vibe. the way they just let you peek at the stats?? iconic. π₯
π§ IMPLEMENTATION NOTES π§
Both of these are defined as in-line macros β not full-on functions, just little macros doing their thing β¨
And the members they access? Type long. periodt.
β RETURN VALUES β
pmap_resident_count()returns the number of pages in the physical map pmap which are currently resident in main memory πpmap_wired_count()returns the number of pages in the physical map pmap which are currently wired into in main memory π
π SEE ALSO π
π AUTHORS π
This manual page was written by Bruce M Simpson <bms@spc.org>. thank you for your service king π«‘π
and that's the whole page, bestie π
this one shipped with Debian and is dated July 21, 2003 β yeah, it's old enough to have its own nostalgic tumblr era, but the info still slaps β¨ go read pmap(9) next, iykyk π¦π
π¦ 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