fs_dax_get(9)
π fs_dax_get(9) β kernel API manual, but make it make sense π
okay so bestie, welcome to fs_dax_get(9) from the Kernel API Manual. this is the page where the kernel lets a filesystem claim a devdax and honestly? it's giving main character energy. let's go β¨
β¨ NAME β¨
fs_dax_get β get ownership of a devdax via holder/holder_ops π
like, you're literally calling dibs on a devdax. no cap.
πΈ SYNOPSIS πΈ
int fs_dax_get (struct dax_device *dax_dev , void *holder , const struct
dax_holder_operations *hops );
three arguments, one int coming back at you. iconic signature tbh π
π¦ ARGUMENTS π¦
dax_devβ the dev that's getting prepped for fs-dax usage. it's the whole point of the function, so likeβ¦ be nice to it π«Άholderβ the filesystem or mapped device that lives inside thedax_device. yes, it goes inside. nesting era πhopsβ the operations for the inner holder. short name, big responsibilities, we love to see it β¨
π DESCRIPTION π
so fs-dax file systems call this function when they're getting ready to use a devdax device for fsdax. that's the whole vibe check.
it's like fs_dax_get_by_bdev, BUT β and this is the important part, don't skip it β the caller already has struct dev_dax, and there is no bdev. so if you came here looking for a block device, bestie, wrong party π
the holder argument is what makes this exclusive. one holder, one devdax, that's the arrangement. periodt π₯
β RETURN β
0β success! slay, you got it π<0β failure π something went sideways, check your vibes (and your arguments)
π SEE ALSO π
go read these next, iykyk:
- Kernel file
./drivers/dax/super.c struct dax_device(9)fs_dax_get_by_bdev(9)fs_put_dax(9)dax_direct_access(9)dax_set_ops(9)dax_holder(9)inode_dax(9)
the whole dax friend group honestly, they all show up together π§
and that's the page!! this lil gem lives in ./drivers/dax and was dated October 2026 β the section header and footer said fs_dax_get(9) and Kernel API Manual respectively, so you know exactly where to find it again π
stay hydrated, read your manpages, and remember: the holder makes it exclusive πβ¨π¦
π¦ 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