pmd_is_huge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ’€

  • true if this PMD is huge 🌈
  • false otherwise 🫢

πŸ”₯ SEE ALSO πŸ”₯


Signed, sealed, and slaying from ./include/linux, dated October 2026 β€” mwah πŸ’‹βœ¨πŸŽ€

πŸ“¦ where this page comes from