virtqueue_unmap_page_attrs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ virtqueue_unmap_page_attrs(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is virtqueue_unmap_page_attrs. say hi πŸ‘‹


✨ NAME ✨

virtqueue_unmap_page_attrs β€” map a page to the device

yeah. i know. the name says unmap and the description says map and i'm just the messenger 🫢 that's literally what the page says, so that's literally what you get. no cap, don't come for me.

🌸 SYNOPSIS 🌸

void virtqueue_unmap_page_attrs (const struct virtqueue *_vq ,
dma_addr_t map_handle , size_t size , enum dma_data_direction dir ,
unsigned long attrs );

it returns void, meaning it gives you nothing back β€” it's giving mysterious, it's giving "the journey was the friends we made along the way" πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

five of them. count 'em. five. let's go 🌈

  • _vq β€” the virtqueue we are talking to. your conversational partner. be polite to her πŸ’–
  • map_handle β€” the mapped address. yes, that one πŸ¦‹
  • size β€” the buffer size. how much buffer we're buffering ✨
  • dir β€” mapping direction. an enum dma_data_direction, so it's got opinions about where things flow 🧭
  • attrs β€” unmapping attributes. an unsigned long of pure vibes-and-flags 🌸

πŸ’« SEE ALSO πŸ’«

this list is LONG and honestly iconic β€” the whole virtio friend group showed up. Kernel file ./drivers/virtio/virtio_ring.c says hi, and so do literally all of these:

thirty-one entries. thirty-one!! the group chat is POPPIN' πŸ”₯ (and yes, virtqueue_map_page_attrs(9) is right there in the list being the unmap's little sibling β€” family reunion πŸŽ‰)


so that's the whole page, bestie. short, sweet, void, and sourced from ./drivers/virtio, dated October 2026, page virtqueue_unmap_page_attrs(9). go forth and unmap (or map, per the NAME section, we don't gatekeep) πŸ’œπŸ§šβ­

πŸ“¦ where this page comes from