d_inode_rcu(9)
π 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 π₯
- the kernel file
./include/linux/dcache.hπ (that's the one, that's where she lives) dget_dlock(9)dget(9)d_unhashed(9)d_really_is_negative(9)d_really_is_positive(9)d_inode(9)d_backing_inode(9)d_real(9)d_real_inode(9)
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 saysd_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
- 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