get_dma_buf_unless_doomed(9)
π get_dma_buf_unless_doomed(9) π
okay so this is the Kernel API Manual page for get_dma_buf_unless_doomed(9), and it's giving very specific kernel-internals energy. buckle up, bestie π«Ά
πΈ NAME πΈ
get_dma_buf_unless_doomedβ get adma_bufreference if possible. that's the whole vibe. β¨
β¨ SYNOPSIS β¨
bool get_dma_buf_unless_doomed (struct dma_buf *dmabuf );
π ARGUMENTS π
dmabufβ a non-refcounted pointer to astruct dma-buf. yes, non-refcounted. don't come for me, that's literally what it says π
π DESCRIPTION π
okay so the actual mechanics: obtain a file reference from a lookup structure that doesn't refcount the file, but synchronizes with its release method to make sure it has not been freed yet. see for example kref_get_unless_zero documentation. it returns true if refcounting succeeds, false otherwise. it's giving iconic behavior, no cap π₯
and the tea: nobody really wants this as a public API yet, so let it mature here for some time... π it's lowkey in its quiet era. let it cook. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/vmwgfx/ttm_object.cβstruct ttm_object_file(9) ttm_prime_refcount_release(9)ttm_prime_dmabuf_release(9)ttm_prime_fd_to_handle(9)ttm_prime_handle_to_fd(9)ttm_prime_object_init(9)
go read those if you're deep in the vmwgfx lore, iykyk π
xoxo, your kernel bestie π β source/version: ./drivers/gpu/drm/vmwgfx; date: October 2026.
π¦ 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