xenbus_unmap_ring_vfree(9)
π xenbus_unmap_ring_vfree(9) β Kernel API Manual π
okay bestie, welcome to the xenbus_unmap_ring_vfree(9) page from the Kernel API Manual. We're talking about unmapping a page of memory from another domain, and yes, it's giving cross-domain cleanup realness. π
β¨
πΈ NAME πΈ
xenbus_unmap_ring_vfree β unmap a page of memory from another domain. periodt. π
π SYNOPSIS π
int xenbus_unmap_ring_vfree (struct xenbus_device *dev , void *vaddr );
That's the whole signature, no cap. π«Ά
π¦ ARGUMENTS π¦
devβ xenbus device. That's your device buddy for this whole operation. πvaddrβ addr to unmap. Like, the address that's getting un-mapped. β¨
β DESCRIPTION β
Based on Rusty Russell's skeleton driver's unmap_page. Iconic lineage, honestly. π
Unmap a page of memory in this domain that was imported from another domain. Very cross-domain main character energy. π
Use xenbus_unmap_ring_vfree if you mapped in your memory with xenbus_map_ring_valloc β because it will free the virtual address space. That's the vibe check. π
π RETURN π
0 on success or GNTST_* on error (see xen/include/interface/grant_table.h). So yeah: zero = success, GNTST_* = go check that grant table header, bestie. π
π SEE ALSO π
Kernel file ./drivers/xen/xenbus/xenbus_client.c is the source-y bestie here. Also go peek at:
xenbus_watch_path(9)xenbus_watch_pathfmt(9)xenbus_switch_state(9)xenbus_dev_error(9)xenbus_dev_fatal(9)xenbus_map_ring_valloc(9)xenbus_unmap_ring(9)xenbus_read_driver_state(9)
and that's the page, bestie π«Ά source/version: ./drivers/xen/xenbus; date: October 2026; manual: xenbus_unmap_ring_vfree(9) β mwah πβ¨π
π¦ 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