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: the pmap must exist and addr must be mapped into the pmap. If any error occurs, the machine-dependent implementation should return 0. 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