i915_rsgt_from_mm_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i915_rsgt_from_mm_node(9) β€” like, the kernel API manual bestie πŸŽ€

okay so welcome to the i915_rsgt_from_mm_node page, part of the Kernel API Manual, and honestly? this one's a little baddie. it takes a struct drm_mm_node and gives you back a refcounted sg_table, which is giving "glow-up machine" energy ✨


🌸 NAME 🌸

i915_rsgt_from_mm_node β€” create a refcounted sg_table from a struct drm_mm_node πŸ’«


πŸ¦‹ SYNOPSIS πŸ¦‹

struct i915_refct_sgt * i915_rsgt_from_mm_node (const struct drm_mm_node
*node , u64 region_start , u32 page_alignment );

like yes bestie that's the whole signature, no notes πŸ’…


✨ ARGUMENTS ✨

  • node β€” the struct drm_mm_node. that's literally it, that's the whole vibe 🫢
  • region_start β€” an offset you add to the dma addresses of the sg list. think of it as a little head start, a glow-up displacement if you will πŸ’–
  • page_alignment β€” the required page alignment for each sg entry. and bestie, it has to be a power of two β€” no cap, that's non-negotiable ⚠️

πŸ”₯ DESCRIPTION πŸ”₯

so what it actually does: it creates a struct sg_table, initializing it from a struct drm_mm_node 🧚 and it's out here taking a maximum segment length into account too, splitting into segments if necessary. like it's doing the most and honestly? it ate πŸ’€βœ¨


🌈 RETURN 🌈

  • on success: a pointer to a kmalloced struct i915_refct_sgt πŸ‘‘ slay
  • on failure: a negative error code cast to an error pointer β€” so yeah, check that IS_ERR() bestie, don't just raw-dog the pointer πŸ˜­πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ


lowkey important: no invented behaviour here, everything above is fr fr straight from the page. if you need the actual file, it's in ./drivers/gpu/drm/i915 🌟

and that's the whole thing bestie β€” this page lives in ./drivers/gpu/drm/i915 and it's dated October 2026, so yeah, she's from the future and she's iconic for it πŸŽ€πŸ’…πŸ¦‹β­

πŸ“¦ where this page comes from