STRUCT I915_TTM_BUDDY_RESOURCE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so this is the struct i915_ttm_buddy_resource(9) page β€” header-style struct i915_...ddy_resource(9) β€” straight outta the Kernel API Manual, and it's giving kernel-struct main character energy ✨.

The NAME section is literally just struct i915_ttm_buddy_resource followed by a dash and no summary text. That's it. No cap. 🫢

bestie, the dash is not me forgetting a description β€” the original page has no description there.

✨ SYNOPSIS ✨

Here's the struct in all its exact, character-for-character glory β€” don't let the indentation jump-scare you:

       struct i915_ttm_buddy_resource {
           struct ttm_resource base;
           struct list_head blocks;
           unsigned long flags;
           unsigned long used_visible_size;
           struct gpu_buddy *mm;
        };

🧚 Members 🧚

  • base β€” struct ttm_resource base class we extend. It's the base, and yeah, we extend it. πŸ’–
  • blocks β€” the list of struct i915_buddy_block for this resource/allocation. The buddy-block roster, basically. πŸŽ€
  • flags β€” DRM_BUDDY_*_ALLOCATION flags. That's the whole flag vibe check. πŸ”₯
  • used_visible_size β€” How much of this resource, if any, uses the CPU visible portion, in pages. Very demure, very page-counted. 🌸
  • mm β€” the struct i915_buddy_mm for this resource. And yeah, the synopsis literally spells the pointer as struct gpu_buddy *mm; β€” both versions are in the original page, so I'm keeping both. iykyk. πŸ™ˆ

πŸ”₯ Description πŸ”₯

Extends the struct ttm_resource to manage an address space allocation with one or more struct i915_buddy_block. That's the plot. It's a TTM resource glow-up that handles address space allocation using one or more buddy blocks. Periodt. πŸ’…

🌈 SEE ALSO 🌈


xoxo, bestie πŸ’œ β€” the source/version line is ./drivers/gpu/drm/i915, the date is October 2026, and the footer title/version vibe is struct i915_...ddy_resource(9). Cute. Slay. πŸŽ€βœ¨

πŸ“¦ where this page comes from