softleaf_to_marker(9)
β¨ softleaf_to_marker β Kernel API Manual β¨
okay bestie, welcome to the softleaf_to_marker(9) page π
this one lives in the kernel API manual and it's genuinely so simple it'll take you like two seconds, but we're gonna do it right, fr fr π«Ά
πΈ NAME πΈ
softleaf_to_marker β literally just: obtain the marker associated with a leaf entry π no cap, that's the whole job.
π¦ SYNOPSIS π¦
pte_marker softleaf_to_marker (softleaf_t entry );
that's it. one argument, one return, main character energy β¨
π ARGUMENTS π
entryβ the leaf entry, bestie. and listen, there's a vibe check you have to pass first:softleaf_is_marker(entry)must return true. like, that's non-negotiable π if it's not a marker, this isn't the function for you.
π RETURN π
the marker associated with the leaf entry π that's what you get back. iconic, honestly.
π SEE ALSO π
okay so this is the part where I hold your hand and walk you through the whole friendship group, because this function does not exist alone π«Ά it's all in the kernel file ./include/linux/leafops.h:
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_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_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)
like, that's the whole squad π«Ά go read them, iykyk π
π reminder for the girlies in the back: everything above assumes softleaf_is_marker(entry) returned true. don't skip the vibe check.
and that's the page!! π this one came out of ./include/linux and it's dated October 2026 β so like, mark your calendars bestie, and go get that marker πππΈ
π¦ 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