ttm_prime_object_init(9)
β¨ NAME β¨
okay so this is ttm_prime_object_init(9) from the Kernel API Manual, and its whole personality is: initialize a ttm_prime_object. iconic behavior, honestly π
πΈ SYNOPSIS πΈ
int ttm_prime_object_init (struct ttm_object_file *tfile , size_t size ,
struct ttm_prime_object *prime , enum ttm_object_type type , void
(*refcount_release) (struct ttm_base_object **) );
π ARGUMENTS π
tfileβ thestruct ttm_object_filethat identifies the caller. basically βwho disβ but kernel-flavored π«Άsizeβ the size of thedma_bufswe export. yes bestie, weβre exporting them.primeβ the object to be initialized. main character energy, fr fr β¨typeβ seettm_base_object_initfor this one πrefcount_releaseβ also seettm_base_object_init, thatβs where the deets live π§
π¦ DESCRIPTION π¦
this function initializes an object that is compatible with the drm_prime model for data sharing between processes and devices. thatβs the vibe: sharing data across processes and devices, no cap π
π SEE ALSO π
the kernel file ./drivers/gpu/drm/vmwgfx/ttm_object.c is the source of truth, and you should also go peek at:
struct ttm_object_file(9)get_dma_buf_unless_doomed(9)ttm_prime_refcount_release(9)ttm_prime_dmabuf_release(9)ttm_prime_fd_to_handle(9)ttm_prime_handle_to_fd(9)
and thatβs the whole page, bestie π
this oneβs sourced from ./drivers/gpu/drm/vmwgfx and dated October 2026 β mwah, go initialize something beautiful ππ¦
π¦ 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