STRUCT TTM_PRIME_OBJECT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct ttm_prime_object(9)

okay bestie, welcome to the Kernel API Manual page for struct ttm_prime_object(9) β€” and yes, she’s a modified base object that is prime-aware πŸ’…βœ¨

πŸ’– NAME πŸ’–

struct ttm_prime_object β€” Modified base object that is prime-aware 🫢

✨ SYNOPSIS ✨

       struct ttm_prime_object {
           struct ttm_base_object base;
           struct mutex mutex;
           size_t size;
           enum ttm_object_type real_type;
           struct dma_buf *dma_buf;
           void (*refcount_release) (struct ttm_base_object **);
        };

🫢 Members 🫢

  • base β€” the struct ttm_base_object that we derive from, our lil ancestor field 🌱
  • mutex β€” the mutex protecting the dma_buf member πŸ”’
  • size β€” size of the dma_buf associated with this object πŸ“
  • real_type β€” type of the underlying object. Needed since we’re setting the value of base::object_type to ttm_prime_type πŸ‘‘
  • dma_buf β€” non ref-coutned pointer (that spelling is straight from the source, bestie, not me πŸ™ˆ) to a struct dma_buf created from this object
  • refcount_release β€” the underlying object’s release method. Needed since we set base::refcount_release to our own release method. Signature is literally void (*refcount_release) (struct ttm_base_object **); πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./drivers/gpu/drm/vmwgfx/ttm_object.h β€” enum ttm_object_type(9), plus all these cross-refs, no cap:


byeee πŸ’… source/version: ./drivers/gpu/drm/vmwgfx Β· date: October 2026 Β· page: struct ttm_prime_object(9) ✨

πŸ“¦ where this page comes from