dma_buf_attach_revocable(9)
π dma_buf_attach_revocable(9) β the vibe check for revoke semantics
okay so this is a page from the Kernel API Manual, and bestie, it's a short one but it's important, so stay with me π«Ά
β¨ NAME β¨
dma_buf_attach_revocable β check if a DMA-buf importer implements revoke semantics.
Like, literally just a yes/no vibe check on your importer. That's the whole job. Slay. π
πΈ SYNOPSIS πΈ
bool dma_buf_attach_revocable (struct dma_buf_attachment *attach );
Returns a bool, takes one pointer, zero drama. π
π¦ ARGUMENTS π¦
attachβ the DMA-buf attachment to check π that's it, that's the whole argument list, she's low maintenance.
π DESCRIPTION π
So the function returns true if the DMA-buf importer can support the revoke sequence explained in dma_buf_invalidate_mappings within bounded time. Bounded time is the main character here β no infinite hangs, no "it'll get there eventually", none of that. β³
And what does that actually mean? It means the importer implements invalidate_mappings and ensures that unmap is called as a result. Both things. Not one. Both. No cap. π₯
fr fr, if your importer can't do the revoke dance in bounded time, this returns something other than true β and honestly you should respect it for being honest with you π
π SEE ALSO π
Grab a snack, this list is long, but every single one of these is iconic in her own right π:
- The kernel file
./drivers/dma-buf/dma-buf.cβ the mothership, the source of truth, the whole entire house π dma_buf_iter_begin(9)dma_buf_iter_next(9)implicit fence polling(9)dma_buf_set_name(9)dma buf device access(9)dma_buf_export(9)dma_buf_fd(9)dma_buf_fd_install(9)dma_buf_get(9)dma_buf_put(9)locking convention(9)dma_buf_dynamic_attach(9)dma_buf_attach(9)dma_buf_detach(9)dma_buf_pin(9)dma_buf_unpin(9)dma_buf_map_attachment(9)dma_buf_map_attachment_unlocked(9)dma_buf_unmap_attachment(9)dma_buf_unmap_attachment_unlocked(9)dma_buf_invalidate_mappings(9)β the one this whole page is spiritually about, go read it, it's giving lore β¨cpu access(9)dma_buf_begin_cpu_access(9)dma_buf_end_cpu_access(9)dma_buf_mmap(9)dma_buf_vmap(9)dma_buf_vmap_unlocked(9)dma_buf_vunmap(9)dma_buf_vunmap_unlocked(9)
and that's the page, bestie π
this icon lives in ./drivers/dma-buf, dated October 2026, and yes, dma_buf_attach_revocable(9) is her full government name πβ¨ go forth and check your revoke semantics, ily π«Ά
π¦ 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