softleaf_to_pfn(9)
π¦ softleaf_to_pfn(9) β the Kernel API Manual, bestie edition β¨
okay so picture this: you're deep in ./include/linux/leafops.h land (that's the Kernel file, π
) and you've got yourself a leaf entry. this little function right here is the one that pulls the PFN out of it. literally that simple. no cap.
πΈ SYNOPSIS πΈ
unsigned long softleaf_to_pfn (softleaf_t entry );
π ARGUMENTS π
entryβ the leaf entry you're decoding, queen. β οΈ but heads up:softleaf_has_pfn(entry)must return true. like, that's non-negotiable. check it first, bestie, fr fr.
π RETURN π
the PFN associated with the leaf entry. that's it, that's the whole vibe. β¨
π₯ SEE ALSO π₯
the whole squad, gathered in ./include/linux/leafops.h β go say hi to all of them:
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_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)
mwah π that's the whole page, my love β this one lives over in ./include/linux and it's dated October 2026, so mark your calendar bestie, and go get that PFN. π«Ά
π¦ 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