STRUCT TTM_PRIME_OBJECT(9)
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β thestruct ttm_base_objectthat we derive from, our lil ancestor field π±mutexβ the mutex protecting thedma_bufmember πsizeβ size of thedma_bufassociated with this object πreal_typeβ type of the underlying object. Needed since weβre setting the value ofbase::object_typetottm_prime_typeπdma_bufβ non ref-coutned pointer (that spelling is straight from the source, bestie, not me π) to astruct dma_bufcreated from this objectrefcount_releaseβ the underlying objectβs release method. Needed since we setbase::refcount_releaseto our own release method. Signature is literallyvoid (*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:
ttm_object_type(9)struct ttm_base_object(9)ttm_base_object_init(9)ttm_base_object_lookup(9)ttm_base_object_lookup_for_ref(9)ttm_base_object_unref(9)ttm_ref_object_base_unref(9)ttm_object_file_init(9)ttm_object_file_release(9)ttm_object_device_release(9)
byeee π
source/version: ./drivers/gpu/drm/vmwgfx Β· date: October 2026 Β· page: struct ttm_prime_object(9) β¨
π¦ 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