ttm_prime_handle_to_fd(9)
π
ttm_prime_handle_to_fd β live from the Kernel API Manual π
Okay so bestie, welcome to the Kernel API Manual corner of the group chat π. This page has major main character energy for one function: ttm_prime_handle_to_fd. It is literally about returning a dma_buf fd from a ttm prime object. No cap. π¦
πΈ NAME πΈ
ttm_prime_handle_to_fd β return a dma_buf fd from a ttm prime object. Periodt. π
β¨ SYNOPSIS β¨
Here is the exact signature, bestie β copy it exactly, fr fr:
int ttm_prime_handle_to_fd (struct ttm_object_file *tfile , uint32_t
handle , uint32_t flags , int *prime_fd );
π ARGUMENTS π
tfileβ structttm_object_fileidentifying the caller. It is giving "who dis?" energy, but for the kernel. πhandleβ handle to the object we are exporting from. This is the thing being sent out into the world. π¦flagsβ flags fordma-bufcreation. We just pass them on. Literally no notes, no extra seasoning. πprime_fdβ the returned file descriptor. That is the fd coming back to you, bestie. π
π¦ SEE ALSO π¦
The see-also squad, iykyk:
- Kernel file
./drivers/gpu/drm/vmwgfx/ttm_object.c 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_object_init(9)
Big mwah from the ./drivers/gpu/drm/vmwgfx source/version corner, dated October 2026, page ttm_prime_handle_to_fd(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