VFIO_IOMMU_S...ISTER_MEMORY(9)
π VFIO_IOMMU_S...ISTER_MEMORY(9) π
okay bestie, this one's coming at you straight out of the Kernel API Manual, and it's one of those ioctl pages that looks scary but is actually so chill once you read it. it's giving "small page, very specific job" energy and honestly? we love a specialist π
β¨ NAME β¨
VFIO_IOMMU_SPAPR_UNREGISTER_MEMORYβ this is the ioctl, and its number is literally spelled out for you:_IOW(VFIO_TYPE, VFIO_BASE + 18, struct vfio_iommu_spapr_register_memory). yes, the struct in the ioctl signature is the register one even though the ioctl is the unregister one β that's not a typo, that's just how it is, don't come for me π«Ά
π¦ SYNOPSIS π¦
VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY
that's it. that's the whole synopsis. iconic minimalism, no notes πΈ
π DESCRIPTION π
so what does it actually do? it unregisters user space memory. specifically, memory that you (or somebody) already registered with VFIO_IOMMU_SPAPR_REGISTER_MEMORY. think of it as the "undo" button for that registration β you put the memory in, now you're taking it back out π
for its parameters, it uses vfio_iommu_spapr_register_memory. same struct, both directions, iykyk.
ngl the whole thing is very "one in, one out" β if you never registered the memory in the first place, this is not the page that's gonna save you π
π₯ SEE ALSO π₯
the kernel file itself lives at ./include/uapi/linux/vfio.h β go read it, it's right there, it's free β
and here's the whole friend group, all of them (9) sections so you know they're kernel-API famous π:
VFIO_GET_API_VERSION(9)VFIO_CHECK_EXTENSION(9)VFIO_SET_IOMMU(9)VFIO_GROUP_SET_CONTAINER(9)VFIO_GROUP_UNSET_CONTAINER(9)VFIO_GROUP_GET_DEVICE_FD(9)struct vfio_region_gfx_edid(9)VFIO_DEVICE_RESET(9)VFIO_DEVICE_GET_GFX_DMABUF(9)
and that's the page, bestie π this little gem came from ./include/uapi/linux, dated October 2026, and it goes out to VFIO_IOMMU_S...ISTER_MEMORY(9) β slay, go unregister some memory, periodt π
π¦ 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