softleaf_is_device_private(9)
π softleaf_is_device_private β the "is this a device private entry?" vibe check β¨
okay so bestie, welcome to section 9 of the kernel API manual π this one's a tiny little function but she's important, and honestly she's giving "short queen, main character energy" π
β¨ NAME β¨
softleaf_is_device_private β literally just answers the question: is this leaf entry a device private entry? π§π
πΈ SYNOPSIS πΈ
bool softleaf_is_device_private (softleaf_t entry );
like, she takes one leaf entry and she gives you back a bool, no cap π«Ά
π¦ ARGUMENTS π¦
entryβ the leaf entry. that's it. that's the whole argument. she's lowkey not asking for much π
β RETURN β
returns true if the leaf entry is a device private entry, otherwise false. yes bestie, it's a yes/no situation, she's not here to give you a whole essay πβ¨
ngl this is the easiest return value you'll ever deal with. no error codes. no surprises. just vibes π
π SEE ALSO π
the kernel file ./include/linux/leafops.h β go read her, she's iconic ππ
and then the whole friend group, fr fr:
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_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 okay wow that's a lot of cousins but they're all family and you're gonna meet them eventually ππ
and that's the whole page bestie, go forth and check your leaf entries ππ«Ά
source: ./include/linux Β· version: Kernel API Manual Β· dated October 2026 β mwah, love u, bye πβ¨
π¦ 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