virtqueue_map_mapping_error(9)
π virtqueue_map_mapping_error β like, the Kernel API Manual page you actually wanna read π
okay so bestie, welcome to the virtqueue_map_mapping_error(9) page β yes that's the whole name, yes it's a mouthful, no we're not shortening it, it's iconic as-is β¨
πΈ NAME πΈ
virtqueue_map_mapping_error β check dma address ππ
π¦ SYNOPSIS π¦
int virtqueue_map_mapping_error (const struct virtqueue *_vq ,
dma_addr_t addr );
like, that's the whole call. she's small but she's doing her job π«Ά
π ARGUMENTS π
_vqβ thestruct virtqueuewe're talking about. yes, the one with the underscore, that's literally how it's spelled, don't come for me πaddrβ the DMA address. the one we're checking. the whole point of this function, honestly π
β DESCRIPTION β
okay so here's the tea, and it's a short one:
Returns 0 means dma valid. Anything other than that means invalid dma address. periodt. π₯
that's it. that's the function. she returns an int and she tells you whether your DMA address is valid or not, no notes, no extra lore, no cap π
ngl bestie this one's a lil minimal but like, not every manpage needs to be a whole saga. she checks the address and she goes home β¨
π SEE ALSO π
the whole friend group, gathered here β and fr fr, the Kernel file is ./drivers/virtio/virtio_ring.c π
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_unmap_single_attrs(9)virtqueue_map_need_sync(9)virtqueue_map_sync_single_range_for_cpu(9)virtqueue_map_sync_single_range_for_device(9)
kay that's the page!! π§ mwah π
this little number lives in ./drivers/virtio and the version/date on the tin is October 2026 β so yeah, she's from the future, main character energy fr fr πΈβ¨
π¦ 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