to_ttm_buddy_resource(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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