STRUCT DATA_CHUNK(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

okay bestie, you're reading struct data_chunk(9) from the Kernel API Manual โ€” and no cap, this is the tiny-but-iconic piece of a scatter-gather list that makes a frame. let's unpack the whole vibe check ๐Ÿ’–โœจ

๐ŸŒธ NAME ๐ŸŒธ

struct data_chunk โ€” element of the scatter-gather list that makes a frame. literally the frame-making unit, iykyk ๐Ÿฆ‹

โœจ SYNOPSIS โœจ

       struct data_chunk {
           size_t size;
           size_t icg;
           size_t dst_icg;
           size_t src_icg;
        };

๐Ÿซถ Members ๐Ÿซถ

okay these are the four fields, and yes every single one is getting its moment ๐Ÿ‘‘

  • size โ€” Number of bytes to read from source. size_dst := fn(op, size_src), so it doesn't mean much for destination. like, the destination side is doing its own math, bestie ๐Ÿงฎ๐Ÿ’…
  • icg โ€” Number of bytes to jump after the last src/dst address of this chunk and before the first src/dst address for the next chunk. ignored for dst(assumed 0), if dst_inc is true and dst_sgl is false. ignored for src(assumed 0), if src_inc is true and src_sgl is false. gap energy, but only when those flags say so โœจ
  • dst_icg โ€” Number of bytes to jump after the last dst address of this chunk and before the first dst address for the next chunk. ignored if dst_inc is true and dst_sgl is false. ๐Ÿ’€
  • src_icg โ€” Number of bytes to jump after the last src address of this chunk and before the first src address for the next chunk. ignored if src_inc is true and src_sgl is false. ๐Ÿซถ

๐Ÿ’œ SEE ALSO ๐Ÿ’œ

Kernel file ./include/linux/dmaengine.h and the whole squad of friends, in order, no cap:


okay bestie, that's the whole page ๐Ÿ’– brought to you by the source path ./include/linux, the date/version vibe October 2026, and the manual page struct data_chunk(9). slay and go make a frame ๐Ÿฆ‹โœจ

๐Ÿ“ฆ where this page comes from