i915_gem_to_ttm(9)
π i915_gem_to_ttm π
okay bestie so this is a kernel API manual page, section 9 β it's i915_gem_to_ttm(9) and honestly it's giving "one tiny function, zero drama" and I'm obsessed π
β¨ NAME β¨
i915_gem_to_ttm β converts a struct drm_i915_gem_object into a struct ttm_buffer_object. that's it. that's the whole vibe. slay π
πΈ SYNOPSIS πΈ
struct ttm_buffer_object * i915_gem_to_ttm (struct drm_i915_gem_object
*obj );
literally just hand it a gem object and it hands you back the ttm buffer object, no cap β¨
π¦ ARGUMENTS π¦
objβ pointer to the gem object. that's your input, your main character, the thing you're converting π«Ά
β RETURN β
it returns a pointer to the embedded struct ttm_buffer_object. not a copy, not a new one, the embedded one β iykyk ππ
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/i915/gem/i915_gem_ttm.hβ go read the header, it's right there π i915_ttm_is_ghost_object(9)i915_ttm_to_gem(9)i915_ttm_gtt_binds_lmem(9)i915_ttm_cpu_maps_iomem(9)
all of these are the friend group, go say hi π
ngl this was a short one but we ate anyway πβ¨
so um yeah, that's the page! it lives under ./drivers/gpu/drm/i915/gem, it's dated October 2026, and it's from the Kernel API Manual β periodt. bye bestie, go convert some objects π
ππ¦
π¦ 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