dma_buf_vmap_unlocked(9)
β¨ dma_buf_vmap_unlocked(9) β¨
okay so welcome to the Kernel API Manual bestie, today we're looking at dma_buf_vmap_unlocked(9) and honestly she's giving "does one thing and does it well" π
πΈ NAME πΈ
dma_buf_vmap_unlocked β Create virtual mapping for the buffer object into kernel address space. Same restrictions as for vmap and friends apply.
no cap, that "same restrictions as for vmap and friends" part is doing a LOT of heavy lifting there, so don't sleep on it π«Ά
π SYNOPSIS π
int dma_buf_vmap_unlocked (struct dma_buf *dmabuf , struct iosys_map
*map );
π¦ ARGUMENTS π¦
dmabuf[in] β buffer to vmap. this is the main character, the thing you're mapping β¨map[out] β returns the vmap pointer. she's an output param, so she gets filled in for you, you don't fill her π
π DESCRIPTION π
Unlocked version of dma_buf_vmap.
Returns 0 on success, or a negative errno code otherwise.
literally that's it, that's the whole vibe. but fr fr check your return value β a negative errno is not a slay, it's a signal that something went sideways π
π₯ SEE ALSO π₯
Kernel file ./drivers/dma-buf/dma-buf.c and the whole friend group:
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_attach_revocable(9)dma_buf_invalidate_mappings(9)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_vunmap(9)dma_buf_vunmap_unlocked(9)
like yes that's a long list but she's thorough and we respect it π
okay and for the cute sign-off: this icon lives in ./drivers/dma-buf, she's dated October 2026, and her full name for the group chat is dma_buf_vmap_unlocked(9). bye bestie, map responsibly ππ
π¦ 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