folio_inode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… folio_inode(9) β€” like, the Kernel API Manual page you actually needed πŸŽ€

okay so bestie, welcome to folio_inode(9) from the Kernel API Manual β€” this one's short, sweet, and honestly kind of a one-trick pony, but she does her trick flawlessly. ✨


🌸 NAME 🌸

folio_inode β€” get the host inode for this folio. that's it. that's the whole vibe. πŸ’«


✨ SYNOPSIS ✨

struct inode * folio_inode (struct folio *folio );

like, you hand her a folio, she hands you back a struct inode *. iconic exchange, no notes. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • folio β€” the folio. yeah that's the whole description, she's lowkey self-explanatory. and yet... (see DESCRIPTION below 😭)

πŸ’– DESCRIPTION πŸ’–

for folios that are chillin' in the page cache, this returns the inode that this folio belongs to. main character folio, meet her home inode. πŸ πŸ’…

⚠️ do NOT call this for folios that aren't in the page cache. like, fr fr, i'm not joking β€” this is the one rule and we do not break it. πŸ™ˆ not a vibe check she passes, okay?

πŸŽ€ SEE ALSO πŸŽ€

the whole friend group, gathered in Kernel file ./include/linux/pagemap.h β€” go say hi:


okay that's the whole page, you ate that πŸ’… and rq the ~sign-off~ tea: this legend lives in ./include/linux, and she's dated October 2026. future icon behavior ngl. πŸ—“οΈπŸ‘‘ byeee, go read your pagemap πŸ’œπŸ§šπŸŒΈ

πŸ“¦ where this page comes from