STRUCT DRM_SUBALLOC(9)
π struct drm_suballoc(9) π
okay so welcome to the Kernel API Manual, bestie β today's main character is struct drm_suballoc, aka the Sub-allocated range. literally what it says on the tin. let's get into it β¨
πΈ NAME πΈ
struct drm_suballoc β Sub-allocated range π
β¨ SYNOPSIS β¨
struct drm_suballoc {
struct list_head olist;
struct list_head flist;
struct drm_suballoc_manager *manager;
size_t soffset;
size_t eoffset;
struct dma_fence *fence;
};
no cap, that's the whole vibe right there π«Ά
π¦ Members π¦
olistβ List link for list of allocated ranges. it's giving "I know a guy who knows a guy" energy πflistβ Listlinkkfor the manager fenced allocated ranges queues. (yes,linkk, with two k's β that's exactly how it's written, we do not fix, we respect π«‘)managerβ Thedrm_suballoc_manager. the parent, the icon, the one in charge πsoffsetβ Start offset. where the range begins, periodt πΈeoffsetβ End offset + 1 so thateoffset - soffset= size. bestie the +1 is not a typo, it's the whole point β the math is mathing π§fenceβ The fence protecting the allocation. it's literally the security guard of this range ngl π
π₯ SEE ALSO π₯
Kernel file ./include/drm/drm_suballoc.h, struct drm_suballoc_manager(9), drm_suballoc_soffset(9), drm_suballoc_eoffset(9), drm_suballoc_size(9) β go read them, iykyk ππ
lowkey reminder: eoffset is end offset + 1. not + 0. not + 2. don't come for me, that's just how she is π
and that's the page, bestie!! π this whole thing lives in ./include/drm and she's stamped October 2026 β slay, iconic, ate, no notes. mwah ππ
π¦ 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