virtqueue_un...single_attrs(9)
okay bestie, welcome to the virtqueue_un...single_attrs(9) page from the Kernel API Manual π
β¨ this one is short, sweet, and here to help you unmap what you mapped. no cap.
π NAME π
virtqueue_unmap_single_attrs β unmap map for _vq π
β¨ SYNOPSIS β¨
here's the exact signature, bestie β type it exactly like this:
void virtqueue_unmap_single_attrs (const struct virtqueue *_vq ,
dma_addr_t addr , size_t size , enum dma_data_direction dir , unsigned
long attrs );
π«Ά ARGUMENTS π«Ά
_vqβ thestruct virtqueuewe're talking about. literally the vq in question π«addrβ the dma address to unmap π―sizeβ the size of the buffer πΈdirβ DMA direction π§attrsβ DMA Attrs β¨
π« DESCRIPTION π«
Unmap the address that is mapped by the virtqueue_map_* APIs. that's the whole vibe: if the virtqueue_map_* APIs mapped it, this is the unmap move. periodt. π
π SEE ALSO π
the kernel file ./drivers/virtio/virtio_ring.c is lowkey the home base, and here's the whole friend group in order:
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_dma_dev(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_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)
okay that's the page, mwah π this cutie's source/version is ./drivers/virtio, the date is October 2026, and it's the virtqueue_un...single_attrs(9) manual page. go unmap something, 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