softleaf_is_migration_young(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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