d_inode_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… d_inode_rcu β€” like, the Kernel API Manual, bestie ✨

okay so welcome to the group chat, we're talking about d_inode_rcu(9) today and honestly? she's a little icon. this is part of the Kernel API Manual, and she does exactly one thing but she does it correctly. πŸŽ€


🌸 NAME 🌸

d_inode_rcu β€” get the actual inode of this dentry with READ_ONCE(), no cap 🫢


✨ SYNOPSIS ✨

struct inode * d_inode_rcu (const struct dentry *dentry );

like yes, that's the whole signature, she's not complicated πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dentry β€” the dentry you wanna query πŸ‘€ that's it, that's the whole argument, she's lowkey low-maintenance

πŸ’– DESCRIPTION πŸ’–

okay so listen. this is the helper that normal filesystems should use to get at their own inodes in their own dentries, and also to ignore the layering that's been superimposed on top of them. 🧚

it's giving "get your own house in order" energy honestly. you've got layers stacked on layers, and d_inode_rcu is like bestie, no, we're looking at our inode, not whatever the layering wants to show us. periodt. πŸ‘‘

and yeah β€” it does that with READ_ONCE(), which is right there in the name, so iykyk. 🌈


πŸ”₯ SEE ALSO πŸ”₯

like, go read all of them, they're literally all icons in the dcache cinematic universe β­πŸ’œ


ok and just so we're clear β€” this page is from ./include/linux, dated October 2026, and the header says d_inode_rcu(9) in the Kernel API Manual because that's her whole brand. don't forget it bestie πŸ“

anyway that's the page, mwah, go forth and grab your inodes safely πŸ’‹βœ¨πŸŽ€

πŸ“¦ where this page comes from