fs_dax_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the dax_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:

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