softleaf_is_migration_dirty(9)
β¨ softleaf_is_migration_dirty β the migration dirty-bit detector π
okay so bestie, we're in the Kernel API Manual and this page is literally about softleaf_is_migration_dirty(9) β a tiny little function with one (1) job and it does it gorgeously. no cap. π
πΈ SYNOPSIS πΈ
bool softleaf_is_migration_dirty (softleaf_t entry );
it's giving "small signature, big purpose" fr fr. β¨
π¦ ARGUMENTS π¦
entryβ a leaf entry. that's it, that's the whole vibe. hand it a leaf entry and let it cook. π
π DESCRIPTION π
so here's the tea β: if the architecture can actually support storing A/D bits inside migration entries, then this function figures out whether the dirty bit was set on the page table entry that got migrated. that's the whole quest. one question, answered honestly.
if your arch doesn't do A/D bits in migration entries, then this whole check is just not the moment β the support has to exist first, that's the deal. π
π RETURN π
trueβ bestie, the entry does contain a dirty bit πfalseβ nope, no dirty bit in there π
literally a bool. iconic behaviour.
β SEE ALSO β
kernel file: ./include/linux/leafops.h β that's where the leafops live, mwah π«Ά
the whole friend group, no one left out:
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_young(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)
and that's the whole page, bestie π§π sign-off time: this one lives under ./include/linux and it's dated October 2026 β go read the others, they ate too. π₯
π¦ 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