STRUCT I915_REFCT_SGT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the struct i915_refct_sgt(9) page from the Kernel API Manual ✨ β€” it's literally a refcounted scatter-gather table, and it's giving main-character kernel energy πŸ’….

✨ SYNOPSIS ✨

here's the exact shape, no cap:

       struct i915_refct_sgt {
           struct kref kref;
           struct sg_table table;
           size_t size;
           const struct i915_refct_sgt_ops *ops;
        };

πŸŽ€ Members πŸŽ€

  • kref β€” a struct kref for refcounting. yes bestie, it counts refs πŸ’–.
  • table β€” a struct sg_table holding the scatter-gather table itself. important note: table->sgl = NULL can be used to determine whether a scatter-gather table is present or not πŸ‘€.
  • size β€” the size in bytes of the underlying memory buffer. numbers but make it fashion ✨.
  • ops β€” the operations structure. the ops bestie 🫢.

πŸ” SEE ALSO πŸ”

if you're going down the kernel lore rabbit hole, check these out: Kernel file ./drivers/gpu/drm/i915/i915_scatterlist.h, __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), i915_refct_sgt_put(9), i915_refct_sgt_get(9), and __i915_refct_sgt_init(9) 🌈.


mwah πŸ’‹ β€” source/version corner: ./drivers/gpu/drm/i915, date stamp: October 2026. now go be the main character of your own kernel adventure πŸ§šπŸ’œ.

πŸ“¦ where this page comes from