i915_sg_dma_sizes(9)
β¨ i915_sg_dma_sizes(9) β¨
okay bestie, welcome to the i915_sg_dma_sizes(9) page from the Kernel API Manual. this one is short, sweet, and very much βdo one thing wellβ energy. π
π NAME π
i915_sg_dma_sizes β Record the dma segment sizes of a scatterlist
π SYNOPSIS π
unsigned int i915_sg_dma_sizes (struct scatterlist *sg );
πΈ ARGUMENTS πΈ
sgβ The scatterlist. thatβs the whole argument, bestie. one scatterlist, no cap. π«Ά
β RETURN β
it returns an unsigned int with segment sizes logically or'ed together. β¨
so a caller can use this info to determine what hardware page table entry sizes can be used to map the memory represented by the scatterlist. thatβs the vibe check: caller gets the bits, caller figures out which hardware page table entry sizes are usable. π₯
π¦ SEE ALSO π¦
the kernel file ./drivers/gpu/drm/i915/i915_scatterlist.h is where this whole situation lives, and these are the friends in the group chat:
__sg_next(9)__for_each_sgt_daddr(9)__for_each_daddr_next(9)for_each_sgt_page(9)struct i915_refct_sgt_ops(9)struct i915_refct_sgt(9)i915_refct_sgt_put(9)i915_refct_sgt_get(9)__i915_refct_sgt_init(9)
π tiny sign-off: this page is chillinβ under./drivers/gpu/drm/i915, dated October 2026, and itβs literally thei915_sg_dma_sizes(9)manual page. slay. πβ¨
π¦ 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