softleaf_is_...rivate_write(9)
π softleaf_is_device_private_write(9) β the kernel API glow-up
okay so first things first, bestie: this is a page from the Kernel API Manual, and the function we're obsessing over today is softleaf_is_device_private_write. Yes the header abbreviates it as softleaf_is_...rivate_write(9) because man page headers are dramatic like that. Anyway. Let's get into it. β¨
πΈ NAME
softleaf_is_device_private_write β literally just answers the question: is this leaf entry a device private writable entry? That's it. That's the whole vibe check. π
π SYNOPSIS
bool softleaf_is_device_private_write (softleaf_t entry );
π¦ ARGUMENTS
entryβ the leaf entry you're interrogating. just one. hand it over and let the function do its thing π«Ά
β¨ RETURN
Returns true if the leaf entry is a device private writable entry.
Otherwise it returns false. no in-between, no "it's complicated", just a clean bool moment. π
π SEE ALSO
bestie there is a whole friend group here, and I'm not leaving anyone out. all of these live in the 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(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)
like. that's the entire group chat. read them all, they're all valid. π
ngl the only thing you actually have to remember is: one argument, one bool, no cap. π―
and that's the page!! this one came out of ./include/linux, dated October 2026, and yes the footer is still out here spelling it softleaf_is_...rivate_write(9) β iconic consistency, we stan. mwah ππΈ
π¦ 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