pmd_to_softleaf_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pmd_to_softleaf_folio(9) β€” like, the PMD-entry-to-folio converter, bestie ✨

okay so real talk, this is a page from the Kernel API Manual (section 9, kernel girlies rise 🫢) and it's about one very specific little function. don't worry, it's short. we can do this. 🌸


✨ NAME ✨

pmd_to_softleaf_folio β€” literally converts the PMD entry to a folio. that's the whole vibe. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

struct folio * pmd_to_softleaf_folio (pmd_t pmd );

🌈 ARGUMENTS 🌈

  • pmd β€” a PMD entry. that's it, that's the argument. hand it over. πŸ’œ

πŸ”₯ DESCRIPTION πŸ”₯

so here's the thing β€” the PMD entry you're passing in is expected to be a valid PMD softleaf entry. like, that's the assumption going in, no cap. if you're rolling up with something that isn't one, that's on you bestie 😭


⭐ RETURN ⭐

if it's a valid softleaf entry, you get back the folio that the softleaf entry references. slay. πŸ’–

otherwise? NULL. 🫠 that's the whole deal.


πŸ‘‘ SEE ALSO πŸ‘‘

first up, the kernel file itself lives at ./include/linux/leafops.h β€” go read it, iykyk πŸ“–

and then the whole friend group, in order, no skips:

like, that's the entire group chat and every single one of them is invited πŸ’…βœ¨


and that's the page!! mwah πŸ’‹ this one's from ./include/linux, dated October 2026 β€” catch you in the next man page, bestie πŸ§šβ€β™€οΈπŸ“

πŸ“¦ where this page comes from