softleaf_to_pmd(9)
softleaf_to_pmd(9) π¦
okay so bestie, this is a page from the Kernel API Manual β the (9) crew β and it's all about softleaf_to_pmd. it's giving βtranslate a leaf entry into a PMD entryβ energy, and honestly? iconic. β¨π
πΈ NAME πΈ
softleaf_to_pmd β obtain a PMD entry from a leaf entry. that's the mission, no cap π«Ά
β¨ SYNOPSIS β¨
pmd_t softleaf_to_pmd (softleaf_t entry );
π ARGUMENTS π
entryβ Leaf entry. the whole argument, periodt π
π DESCRIPTION π
this generates an architecture-specific PMD entry that can be utilised to encode the metadata the leaf entry encodes. so yeah β PMD entry, architecture-specific, metadata-encoding, all the good stuff. it's literally the function's whole personality. π§
π₯ RETURN π₯
an architecture-specific PMD entry encoding the leaf entry. that's what you get back, bestie β no mystery, just the PMD entry encoding the leaf entry. π
π SEE ALSO π
the kernel file is ./include/linux/leafops.h β that's where this whole leafops friend group lives. π‘
here's the full cast, exactly as the original lists them:
softleaf_mk_none(9)softleaf_from_pte(9)softleaf_to_pte(9)softleaf_from_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_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)
with love from the source ./include/linux, dated October 2026, and signed softleaf_to_pmd(9) π see you in the kernel, bestie! β¨
π¦ 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