pmd_is_huge(9)
π NAME π
Okay so this is pmd_is_huge(9) from the Kernel API Manual, bestie, and it's literally here to answer one question: is this PMD either a huge PMD entry or a software leaf entry? That's the whole vibe. π¦
β¨ SYNOPSIS β¨
bool pmd_is_huge (pmd_t pmd );
π ARGUMENTS π
pmdβ the PMD to check, periodt. That's the one you're passing in.
πΈ DESCRIPTION πΈ
So a huge PMD entry is a non-empty entry that is present and marked huge, or it's a software leaf entry. That's the whole check, no cap. π
This check can be performed without the appropriate locks held, but if you do that, the condition should be rechecked after the locks are acquired. Like, don't just trust the first vibe check forever, bestie. π
β οΈ Lock caveat: if you run this without the right locks, recheck after you grab them. The manual said it, so we're saying it. π
π RETURN π
trueif this PMD is huge πfalseotherwise π«Ά
π₯ SEE ALSO π₯
- Kernel file
./include/linux/huge_mm.h thp_vma_allowable_orders(9)pud_is_huge(9)folio_test_pmd_mappable(9)largest_zero_folio(9)
Signed, sealed, and slaying from ./include/linux, dated October 2026 β 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