virtqueue_dma_dev(9)
π virtqueue_dma_dev(9) β like, the Kernel API Manual one π
okay bestie, so this page is virtqueue_dma_dev(9) from the Kernel API Manual, and honestly? It's a tiny little icon. One job, does it well, periodt. β¨
πΈ NAME πΈ
virtqueue_dma_dev β get the dma dev, that's it, that's the whole vibe π«Ά
β¨ SYNOPSIS β¨
struct device * virtqueue_dma_dev (struct virtqueue *_vq );
π¦ ARGUMENTS π¦
_vqβ thestruct virtqueuewe're talking about. like, the specific one. the main character of this function call π
π DESCRIPTION π
Returns the dma dev. Fr fr, that's the whole thing π
That returned dma dev can been used for dma api. Yes bestie, "been used," we're quoting the universe here, don't come for me π β the point is that thing you get back? You can hand it to the dma api. Slay.
ngl it's giving "one-line function, maximum confidence." No hidden tricks on this page, no extra params, no drama. Just vibes and a pointer. π
π₯ SEE ALSO π₯
Kernel file ./drivers/virtio/virtio_ring.c, plus the whole friend group right here β every single one, no gatekeeping:
virtqueue_add_sgs(9)virtqueue_add_outbuf(9)virtqueue_add_outbuf_premapped(9)virtqueue_add_inbuf(9)virtqueue_add_inbuf_cache_clean(9)virtqueue_add_inbuf_ctx(9)virtqueue_add_inbuf_premapped(9)virtqueue_kick_prepare(9)virtqueue_notify(9)virtqueue_kick(9)virtqueue_get_buf_ctx(9)virtqueue_disable_cb(9)virtqueue_enable_cb_prepare(9)virtqueue_poll(9)virtqueue_enable_cb(9)virtqueue_enable_cb_delayed(9)virtqueue_detach_unused_buf(9)vring_interrupt(9)virtqueue_resize(9)virtqueue_reset(9)virtqueue_get_vring_size(9)virtqueue_map_alloc_coherent(9)virtqueue_map_free_coherent(9)virtqueue_map_page_attrs(9)virtqueue_unmap_page_attrs(9)virtqueue_map_single_attrs(9)virtqueue_unmap_single_attrs(9)virtqueue_map_mapping_error(9)virtqueue_map_need_sync(9)virtqueue_map_sync_single_range_for_cpu(9)virtqueue_map_sync_single_range_for_device(9)
iykyk, read them all, they're literally all in virtio_ring.c energy β
okay that's the page!! mwah π This little beauty lives in ./drivers/virtio, dated October 2026, and it's filed under virtqueue_dma_dev(9) β go forth and dma, bestie ππ
π¦ 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