get_dma_buf_unless_doomed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 a dma_buf reference 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 a struct 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 πŸ¦‹

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