virtio_dma_buf_export(9)
π virtio_dma_buf_export β like, the section 9 girlies already know
Okay so bestie, welcome to virtio_dma_buf_export(9), the kernel API manual page. Yes it's a 9, yes that means kernel internals, yes we're doing this. Pull up a chair π
β¨ NAME β¨
virtio_dma_buf_export β creates a new dma-buf for a virtio exported object. That's it, that's the whole job. She's a builder π
β¨ SYNOPSIS β¨
struct dma_buf * virtio_dma_buf_export (const struct dma_buf_export_info
*exp_info );
Copy it exactly like that if you're typing it, bestie, don't get creative π
β¨ ARGUMENTS β¨
exp_infoβ[in]okay so for the deets you gotta go seedma_buf_export. But the one thing you CANNOT skip: theopsfield MUST refer to adma_buf_opsstruct that's embedded in avirtio_dma_buf_ops. Capital-M Must, no cap. Not "should", not "ideally", MUST π₯
β¨ DESCRIPTION β¨
So basically this wraps dma_buf_export β like a little glamorous coat, a little cardigan over the function β so that virtio drivers can create a dma-buf for a virtio exported object. And why do we care? Because that object's UUID can then be queried by other virtio drivers. It's giving sharing is caring, it's giving cross-driver communication, it's giving community π«Ά
Literally the whole point is that UUID lookup, and this is the function that makes it possible. Iconic.
β¨ SEE ALSO β¨
- Kernel file
./drivers/virtio/virtio_dma_buf.cβ the source, go read her, she's right there virtio_dma_buf_attach(9)is_virtio_dma_buf(9)virtio_dma_buf_get_uuid(9)
Go read the whole friend group, they're all connected, iykyk π¦
Heads up bestie: thatops-must-be-an-embedded-virtio_dma_buf_opsrule from ARGUMENTS is not a vibe suggestion. Treat it as law. β
And that's the page! πΈ Little sign-off moment: this gem lives in ./drivers/virtio, stamped October 2026, and it's virtio_dma_buf_export(9) forever and always. Slay, go export something ππ
π¦ 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