dma_buf_vunmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dma_buf_vunmap(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” today's main character is dma_buf_vunmap(9), and honestly she's the cleanup queen we all need. πŸ§ΉπŸ’–


🌸 NAME 🌸

dma_buf_vunmap β€” the function that unmaps a vmap you got from dma_buf_vmap. literally just undoing the map. no cap. πŸ”


⭐ SYNOPSIS ⭐

void dma_buf_vunmap (struct dma_buf *dmabuf , struct iosys_map *map );

like, that's the whole signature. she's short, she's sweet, she takes two pointers and returns void because she doesn't need to prove anything to anyone. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • dmabuf β€” [in] β€” the buffer you wanna vunmap, bestie. this is the thing getting its map taken away. 😭
  • map β€” [in] β€” the vmap pointer that's about to be vunmap'd. yes the name is doing a lot of work here but she's valid. 🫢
ngl, [in] on both means you're handing these over β€” no sneaky out-params, no surprises. πŸ¦‹

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, ok? every single one of them, in order, no skips: πŸ’œ

look at the kernel file ./drivers/dma-buf/dma-buf.c and also go say hi to 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_vmap_unlocked(9), and last but never least dma_buf_vunmap_unlocked(9) 🌈

like. that's the entire group chat. iykyk. πŸ’…


and that's the page!! mwah πŸ’‹

shoutout to <rainbow>./drivers/dma-buf</rainbow> for being the source, <hotpink>October 2026</hotpink> for the date, and dma_buf_vunmap(9) for being the icon she is β€” go unmap responsibly, bestie, and remember: you mapped it, so you unmap it. periodt. πŸ“βœ¨πŸŽ€

πŸ“¦ where this page comes from