softleaf_is_migration_young(9)
πΈ softleaf_is_migration_young(9) πΈ
okay so this is a page from the Kernel API Manual, section 9, and it's about one tiny little function with a big name: softleaf_is_migration_young. bestie, we're literally just asking one question here. let's get into it π
β¨ SYNOPSIS β¨
bool softleaf_is_migration_young (softleaf_t entry );
like, that's it. that's the whole vibe. it takes one thing and gives you back a bool. iconic behavior honestly π
π¦ ARGUMENTS π¦
entryβ a leaf entry. that's it, that's the whole argument. a leaf entry. give her a leaf πΏ
π DESCRIPTION π
so here's the tea β β if the architecture can support storing A/D bits inside migration entries, then this function figures out whether the accessed bit (a.k.a. the 'young' bit, hence the name, iykyk) was actually set on the migrated page table entry.
like, was it touched? was it young and fresh? this function knows. no cap. β¨
highkey architecture-dependent β it's only meaningful when your arch can store those A/D bits in migration entries in the first place, so don't come for her if the hardware doesn't play along π
π₯ RETURN π₯
trueβ bestie the entry contains an accessed bit πfalseβ nope, it does not π«Ά
literally a two-outcome queen. main character energy fr fr π
π SEE ALSO π
okay so this is the part where she lists her entire friend group, and it is LONG, but we respect it. every single one:
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_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_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)
go read all of them. or don't. no pressure. (jk there is a little pressure, they're all lowkey great) ππ
and that's the page!! sign-off time π β this one lives in ./include/linux, the manual's dated October 2026, and yeah, the whole thing is still called softleaf_is_migration_young(9). mwah, drink water, go touch a leaf entry π
ππ·
π¦ 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