dax_iomap_fault(9)
okay bestie, welcome to the Kernel API Manual corner for dax_iomap_fault(9) β yes, this whole page is about one helper and it's lowkey iconic π
πΈ NAME πΈ
dax_iomap_fault β handle a page fault on a DAX file. That's the whole vibe: DAX file, page fault, handle it β¨
β¨ SYNOPSIS β¨
here's the signature, bestie β copy it exactly, no freestyling:
vm_fault_t dax_iomap_fault (struct vm_fault *vmf , unsigned int order ,
unsigned long *pfnp , int *iomap_errp , const struct iomap_ops *ops );
π ARGUMENTS π
okay so every parameter, and what it's giving:
vmfβ the description of the fault. literally the fault's whole story π«Άorderβ order of the page to fault in. yes ma'am, the page order π₯pfnpβ PFN to insert for synchronous faults iffsyncis required. so that's the synchronous-faults-with-fsyncsituation, no cap πiomap_errpβ storage for detailed error code in case of error. so when things go π, the detailed error code can live hereopsβ Iomap ops passed from the file system. handed over by the fs, periodt π
π¦ DESCRIPTION π¦
When a page fault occurs, filesystems may call this helper in their fault handler for DAX files. that's the main character moment right there π
dax_iomap_fault assumes the caller has done all the necessary locking for page fault to proceed successfully β so like, do your locking first, bestie, because this helper is assuming it's already handled π
π SEE ALSO π
Kernel file ./fs/dax.c is the place, and these are the linked faves:
enum dax_wake_mode(9)dax_folio_reset_order(9)dax_lock_folio(9)dax_layout_busy_page_range(9)dax_iomap_copy_around(9)dax_iomap_rw(9)dax_fault_iter(9)dax_finish_sync_fault(9)
mwah π this page came from ./fs, dated October 2026, and it's all about dax_iomap_fault(9) β source/version and date, all accounted for π«Άβ¨
π¦ 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