PMAP_IS_MODIFIED(9)
π PMAP_IS_MODIFIED(9) π
okay so welcome to the Kernel Developer's Manual page for PMAP_IS_MODIFIED(9) β yes bestie, we're in kernel-dev territory, and it's giving very specific physical-page energy. π¦
β¨ NAME β¨
pmap_is_modified, pmap_ts_modified β return information about physical pages
tiny heads-up: the NAME line sayspmap_ts_modified, while the SYNOPSIS and DESCRIPTION usepmap_ts_referenced. Both are literally on the page, so both stay. iykyk π
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
bool
pmap_is_modified(vm_page_t m);
int
pmap_ts_referenced(vm_page_t m);
These includes and signatures are exact β no cap, no edits. β¨
π DESCRIPTION π
okay so the pmap_is_modified() and pmap_ts_referenced() functions return information about physical pages. That's the whole assignment: physical-page info, served fresh. π
π₯ RETURN VALUES π₯
pmap_is_modified()
pmap_is_modified() returns the status of the βpage modifiedβ bit for the physical page m. That's it β the modified-bit vibe check for page m. π
pmap_ts_referenced()
pmap_ts_referenced() returns a count of reference bits for a page m, clearing those bits. Not every reference bit has to get cleared β that's allowed β but it is necessary that 0 only be returned when there are no remaining reference bits set on the page. So if you get 0, bestie, that means no reference bits are left set. Periodt. π
π SEE ALSO π
go read these next, fr fr π«Ά
π AUTHORS π
This manual page was written by Bruce M Simpson <bms@spc.org>.
mwah π this page is from the Debian edition, dated July 17, 2014, and it's the PMAP_IS_MODIFIED(9) page β iconic, honestly. π
π¦ where this page comes from
- 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