__i915_refct_sgt_init(9)
okay so bestie, meet __i915_refct_sgt_init(9) from the Kernel API Manual β sheβs here to initialize a refcounted sg-list with a custom operations structure, and yes she ate π
β¨
πΈ NAME πΈ
__i915_refct_sgt_init β initialize a refcounted sg-list with a custom operations structure. Thatβs the whole vibe: setup, but make it customizable π
β¨ SYNOPSIS β¨
the signature, untouched and iconic:
void __i915_refct_sgt_init (struct i915_refct_sgt *rsgt , size_t size ,
const struct i915_refct_sgt_ops *ops );
π ARGUMENTS π
rsgtβ thestruct i915_refct_sgtyouβre initializing. main character energy, fr fr.sizeβ size in bytes of the underlying memory buffer. numbers matter, bestie π’opsβ a customized operations structure, for when the refcounted sg-list is embedded into another structure. custom fit, no cap π§
π¦ SEE ALSO π¦
the kernel file to check is ./drivers/gpu/drm/i915/i915_scatterlist.h, and the whole squad is:
__sg_next(9)__for_each_sgt_daddr(9)__for_each_daddr_next(9)for_each_sgt_page(9)i915_sg_dma_sizes(9)struct i915_refct_sgt_ops(9)struct i915_refct_sgt(9)i915_refct_sgt_put(9)i915_refct_sgt_get(9)
and thatβs the page, bestie π«Ά β sourced from ./drivers/gpu/drm/i915, dated October 2026. bye π
π¦ 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