dax_iomap_rw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dax_iomap_rw(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” today’s entry is dax_iomap_rw(9), and it’s literally about I/O to a DAX file. let’s get into it 🫢

🌸 NAME 🌸

dax_iomap_rw β€” the function that performs I/O to a DAX file πŸ’…

✨ SYNOPSIS ✨

ssize_t dax_iomap_rw (struct kiocb *iocb , struct iov_iter *iter , const
       struct iomap_ops *ops );

πŸŽ€ ARGUMENTS πŸŽ€

  • iocb β€” the control block for this I/O. it’s giving β€œpaperwork for the operation” ngl πŸ“‹
  • iter β€” the addresses to do I/O from or to. literally the from/to address situation πŸ¦‹
  • ops β€” iomap ops passed from the file system. the filesystem hands these over, no cap 🫢

πŸ’… DESCRIPTION πŸ’…

okay so dax_iomap_rw performs read and write operations to directly mapped persistent memory. that’s the whole serve: read + write, directly mapped persistent memory, periodt πŸ”₯

but bestie, the callers needs to take care of read/write exclusion and evicting any page cache pages in the region under I/O. yes, that is a caller-side responsibility β€” this function is not doing that part for you. no cap, do not skip it 😭

πŸ”₯ SEE ALSO πŸ”₯

the cross-reference friend group is right here, and every single one is invited:


mwah πŸ’‹ source/version: ./fs, date: October 2026. that’s the sign-off, bestie β€” bye! πŸ’–βœ¨

πŸ“¦ where this page comes from