PMAP_IS_MODIFIED(9)
π PMAP_IS_MODIFIED π
okay bestie, welcome to PMAP_IS_MODIFIED(9), straight out of the Kernel Developer's Manual β¨ this one's short and sweet and it's literally just about asking the kernel questions about physical pages π«Ά
πΈ NAME πΈ
pmap_is_modified, pmap_ts_modified β return information about physical pages
(yes, the NAME line really does say pmap_ts_modified while the rest of the page is out here living its life as pmap_ts_referenced β not me fact-checking the manpage, we just report what it says π
)
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
boolean_t
pmap_is_modified(vm_page_t m);
int
pmap_ts_referenced(vm_page_t m);
look at those includes, so tidy, so organized π
π¦ DESCRIPTION π¦
The pmap_is_modified() and pmap_ts_referenced() functions return information about physical pages. that's it. that's the whole description. short king energy π
π RETURN VALUES π
The pmap_is_modified() function returns the status of the βpage modifiedβ bit for the physical page m. so likeβ¦ is it modified or not, bestie, the bit has answers π
The pmap_ts_referenced() function returns a count of reference bits for a page m, clearing those bits. and here's the important part, no cap: it is not necessary for every reference bit to be cleared, but it is necessary that 0 only be returned when there are no remaining reference bits set on the page. read that one twice, it's giving rules π₯
π SEE ALSO π
go read those too, they're iconic π
π AUTHORS π
This manual page was written by Bruce M Simpson <bms@spc.org>. thank you king, we appreciate you π«Ά
and that's the whole vibe, bestie π this beauty came from Debian, dated July 17, 2014 β yeah it's a 2014 baby and it still ate πβ¨ slay, periodt πΈ
π¦ 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