to_ttm_buddy_resource(9)
π to_ttm_buddy_resource(9) Β· Kernel API Manual π
okay bestie, you opened the Kernel API Manual page for to_ttm_buddy_resource(9) and we're gonna make it make sense β¨ no cap.
πΈ NAME πΈ
to_ttm_buddy_resource β the NAME line is literally to_ttm_buddy_resource -; there's no extra blurb after the dash, bestie, that's the whole vibe π
β¨ SYNOPSIS β¨
here's the exact signature, character for character:
struct i915_ttm_buddy_resource * to_ttm_buddy_resource (struct
ttm_resource *res );
π ARGUMENTS π
resβ the resource to upcast. that's it, that's the argument π«Ά
π¦ DESCRIPTION π¦
okay so this function upcasts the struct ttm_resource object into a struct i915_ttm_buddy_resource. it's giving glow-up for structs β¨ literally takes the struct ttm_resource object and upcasts it into the struct i915_ttm_buddy_resource β iconic behavior, no notes π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/i915/i915_ttm_buddy_manager.h struct i915_ttm_buddy_resource(9)
both are your little breadcrumb trail, iykyk π
π that's the whole page! source/version: ./drivers/gpu/drm/i915 Β· date: October 2026 Β· manual page: to_ttm_buddy_resource(9) β bye bestie, slay your upcasts π«Ά
π¦ 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