PMAP_MINCORE(9)
β¨ 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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2003 Bruce M Simpson <bms@spc.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms