inode_dax(9)
π inode_dax β Kernel API Manual (section 9)
okay so welcome to inode_dax(9), bestie β a whole Kernel API Manual page, section 9, dedicated to one (1) little function. she's small, she's specific, she's iconic. let's get into it π«Ά
β¨ NAME β¨
inode_dax β convert a public inode into its dax_dev
like, that's the whole job. in β out. an inode walks in, a dax_dev walks out. slay π
π¦ SYNOPSIS π¦
struct dax_device * inode_dax (struct inode *inode );
yes that's the signature, copy-pasted exactly, no I will not be reformatting it, she is perfect as she is π
π ARGUMENTS π
inodeβ an inode withi_cdevpointing to adax_devπ that's the vibe check. if your inode'si_cdevisn't pointing at adax_dev, this function is not for you, bestie.
πΈ DESCRIPTION πΈ
okay so here's the tea: this converts a public inode into its dax_dev, periodt.
but β and this is the important part, don't skip it π β this is not equivalent to to_dax_dev. to_dax_dev is for private internal use, the kind of situation where we already know the inode filesystem type == dax_fs_type. so like, they are not the same thing, not interchangeable, don't @ me, the manpage literally says so π
lowkey the whole point of this paragraph is the warning: public inode βinode_dax. private/internal + knowndax_fs_typeβto_dax_dev. keep them straight, iykyk π
π SEE ALSO π
- Kernel file
./drivers/dax/super.cβstruct dax_device(9) fs_dax_get_by_bdev(9)fs_put_dax(9)fs_dax_get(9)dax_direct_access(9)dax_set_ops(9)dax_holder(9)
the whole dax friend group, honestly π§ go read them, they're all connected, it's giving lore π
that's the page!! no cap, that's genuinely everything β¨
source ./drivers/dax, dated October 2026, and yeah β it's inode_dax(9), still the main character of this entire manpage π bye bestie, go convert some inodes π
π¦ 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