iommufd_device_unbind(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ iommufd_device_unbind(9) ✨

okay bestie, this page is from the Kernel API Manual, and it's literally the cleanup bestie to iommufd_device_bind() β€” the β€œundo” moment for binding a device to iommufd. 🫢

πŸŽ€ NAME πŸŽ€

iommufd_device_unbind - Undo iommufd_device_bind()

πŸ’… SYNOPSIS πŸ’…

void iommufd_device_unbind (struct iommufd_device *idev );

🌸 ARGUMENTS 🌸

  • idev β€” Device returned by iommufd_device_bind.

πŸ¦‹ DESCRIPTION πŸ¦‹

So what's the vibe? It releases the device from iommufd control. The DMA ownership will return back to unowned with DMA controlled by the DMA API. Slay. ✨

Big huge important thing: this invalidates the iommufd_device pointer, so other APIs that consume it must not be called concurrently. Not me warning you twice, but… do not do that. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/iommu/iommufd/device.c, plus these besties:

xoxo, from ./drivers/iommu/iommufd, October 2026, with all the iommufd_device_unbind(9) energy πŸ’–

πŸ“¦ where this page comes from