VFIO_GROUP_UNSET_CONTAINER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ VFIO_GROUP_UNSET_CONTAINER πŸ¦‹

Bestie, welcome to the Kernel API Manual entry for VFIO_GROUP_UNSET_CONTAINER β€” yes, the name is long, but it's giving iconic cleanup energy. πŸ’…


✨ NAME ✨

It's literally VFIO_GROUP_UNSET_CONTAINER, and its whole identity is _IO(VFIO_TYPE, VFIO_BASE + 5). πŸŽ€

πŸ’– SYNOPSIS πŸ’–

VFIO_GROUP_UNSET_CONTAINER

🌸 DESCRIPTION 🌸

Okay so what it does: it removes the group from the attached container. This is the opposite of the SET_CONTAINER call, and it returns the group to an initial state.

Before you call this interface, all device file descriptors must be released β€” no cap, that's a hard requirement. 🫢

When you're removing the last group from a container, the IOMMU will be disabled and all state lost, effectively also returning the VFIO file descriptor to an initial state. Big yikes if you weren't ready, but that's the vibe. πŸ’€

🌈 RETURN 🌈

  • 0 on success
  • -errno on failure
  • Availability: When attached to container

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./include/uapi/linux/vfio.h


That's the whole page, bestie. It's sourced from ./include/uapi/linux, dated October 2026 β€” mwah, bye! πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from