iomap_read_inline_data(9)
π iomap_read_inline_data(9) π
okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is iomap_read_inline_data β she's giving tiny-but-important, and honestly? iconic. π
β¨ NAME β¨
iomap_read_inline_data β copy inline data into the page cache π
πΈ SYNOPSIS πΈ
int iomap_read_inline_data (const struct iomap_iter *iter , struct folio
*folio );
two args, one int coming back at you, no cap. π¦
π§ ARGUMENTS π§
iterβ the iteration structure, aka the vibe-check source of truth for what we're reading β¨folioβ the folio to copy to, aka the destination, aka where the data goes to live its best life π«Ά
π DESCRIPTION π
so here's the tea, bestie: this function copies the inline data sitting inside iter into folio, and then zeroes out the rest of the folio so there's no leftover ghost data lurking in there. π literal cleanup queen behavior.
Only a single IOMAP_INLINE extent is allowed at the end of each file. that's the rule, fr fr β one at the end, that's it, no stacking, no greedy little extents.
returns 0 for success β which completes the read, slay β or the usual negative errno if things did not go off. π
π₯ SEE ALSO π₯
- Kernel file
./fs/iomap/buffered-io.c(go read her, she has lore) π iomap_readahead(9)iomap_get_folio(9)iomap_fill_dirty_folios(9)
the whole iomap friend group, honestly obsessed. π
and that's the page!! tysm for reading, mwah π β this lil angel lives in ./fs/iomap, dated October 2026, and yes she ate. βπ
π¦ 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