pte_is_uffd_wp_marker(9)
π pte_is_uffd_wp_marker(9) π
okay bestie, so this is a page from the Kernel API Manual and it's about one tiny little function that answers one tiny little question π
β¨ NAME β¨
pte_is_uffd_wp_marker β the vibe check for a PTE entry: does this thing encode a userfaultfd write protect marker leaf entry? π¦
like, is this PTE lowkey a UFFD WP marker leaf entry or not. that's the whole gig. no cap.
πΈ SYNOPSIS πΈ
bool pte_is_uffd_wp_marker (pte_t pte );
it takes a pte_t and hands you back a bool. that's it. iconic minimalism honestly π«Ά
π ARGUMENTS π
pteβ a PTE entry. that's the whole argument. one (1) PTE entry, freshly handed to you, and you're asking it the Big Question π
β RETURN β
it returns true if this PTE is a UFFD WP marker leaf entry, otherwise false. simple as that, periodt β¨
ngl this is the easiest return value in the whole file. two states. no in-between. no "undefined". we love a binary king π
π¦ SEE ALSO π¦
sooooo this is the part where the manpage just. goes off. like it's giving "I know everybody at this party" energy π the kernel file is ./include/linux/leafops.h and here's the whole friend group:
softleaf_mk_none(9)softleaf_from_pte(9)softleaf_to_pte(9)softleaf_from_pmd(9)softleaf_to_pmd(9)softleaf_is_none(9)softleaf_type(9)softleaf_is_swap(9)softleaf_is_migration_write(9)softleaf_is_migration_read(9)softleaf_is_migration_read_exclusive(9)softleaf_is_migration(9)softleaf_is_device_private_write(9)softleaf_is_device_private(9)softleaf_is_device_exclusive(9)softleaf_is_hwpoison(9)softleaf_is_marker(9)softleaf_to_marker(9)softleaf_has_pfn(9)softleaf_to_pfn(9)softleaf_to_page(9)softleaf_to_folio(9)softleaf_is_poison_marker(9)softleaf_is_guard_marker(9)softleaf_is_uffd_wp_marker(9)softleaf_is_migration_young(9)softleaf_is_migration_dirty(9)pte_is_marker(9)pte_is_uffd_marker(9)pmd_is_device_private_entry(9)pmd_is_migration_entry(9)softleaf_is_valid_pmd_entry(9)pmd_is_valid_softleaf(9)pmd_to_softleaf_folio(9)
like. that's a whole friend group chat and our girl pte_is_uffd_wp_marker is right there in the middle of it π iykyk
and that's the whole page bestie!! π this one lives in ./include/linux and the version/date stamp on it is October 2026 β so yeah, it's a little time traveler. write that down. π
β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms