PMAP_MINCORE(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

✨ NAME ✨

okay so bestie, this is pmap_mincore, and we're lowkey in the Kernel Developer's Manual β€” the header energy is PMAP_MINCORE(9), but we're folding that in here instead of copying the line, periodt πŸ’…. The whole vibe? It determines if a virtual address is resident in physical memory. No cap. 🫢


🌸 SYNOPSIS 🌸

#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>

int
pmap_mincore(pmap_t pmap, vm_offset_t addr);

πŸ¦‹ DESCRIPTION πŸ¦‹

The pmap_mincore() function is the main character here: it determines if the page at the virtual address addr in the physical map pmap is resident in physical memory. Literally that's the whole quest. ✨

It is the machine-dependent interface used by the mincore(2) system call. iykyk 🧚


πŸŽ€ RETURN VALUES πŸŽ€

If the page is resident in physical memory, a mask of flags is returned, and the meaning of those flags is documented in mincore(2). Otherwise, 0 is returned. Slay. πŸ’–

The pmap must exist and addr must be mapped into the pmap. If any error occurs, the machine-dependent implementation should return 0. Not me stressing the should β€” it's right there in the source, bestie. 😭


🌈 SEE ALSO 🌈


πŸ‘‘ AUTHORS πŸ‘‘

This manual page was written by Bruce M Simpson <bms@spc.org>. Iconic behavior, honestly. 🫢


mwah πŸ’‹ β€” this lil page is from Debian, dated July 21, 2003, and it's the PMAP_MINCORE(9) manual page, periodt. πŸŽ€

πŸ“¦ where this page comes from