softleaf_is_poison_marker(9)
π softleaf_is_poison_marker(9) β Kernel API Manual, bestie edition π§
okay so real quick, before we get into it: this whole page lives in the Kernel API Manual (section 9, for the uninitiated π«), so that's the vibe. Now let's get into the actual tea π
β¨ NAME β¨
softleaf_is_poison_marker β the little function that answers the question "is this leaf entry a poison marker?" and honestly? it eats every time π
πΈ SYNOPSIS πΈ
bool softleaf_is_poison_marker (softleaf_t entry );
π ARGUMENTS π
entryβ the leaf entry. that's it, that's the whole argument. a leaf entry. hand it over and let the function do its thing π«Ά
π¦ DESCRIPTION π¦
so the poison marker gets set via UFFDIO_POISON β that's the how, that's the lore π₯
also important: this one is userfaultfd-specific, meaning it's not out here being universal, it's specifically for the userfaultfd crowd. iykyk π
β RETURN β
trueβ yup, that leaf entry is a poison marker πfalseβ nope, it's literally not π
π SEE ALSO π
starting with the file itself, the whole source of truth:
./include/linux/leafops.h
and now the full friend group, no one left out, periodt:
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_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_wp_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)
ngl bestie, if you're poking at leaf markers in general you're gonna want that whole list. it's giving "read the whole syllabus before the exam" π but like, lovingly π
okay that's the page!! mwah π this one shipped out of ./include/linux and the version/date on it is October 2026 β so yeah, mark your calendars, future girlies will still be checking leaf entries for poison markers πβ¨ bye bestie, slay responsibly π
π¦ 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