PMAP_IS_MODIFIED(9)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1, nixpkgs unstable

πŸ’… 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 says pmap_ts_modified, while the SYNOPSIS and DESCRIPTION use pmap_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