STRUCT VFIO_IOMMU_DRIVER_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Hiii bestie πŸ’– welcome to the Kernel API Manual page for struct vfio_iommu_driver_ops(9) β€” the VFIO IOMMU driver callbacks one. This is the whole tea, no cap. 🫢

✨ NAME ✨

It’s called struct vfio_iommu_driver_ops β€” VFIO IOMMU driver callbacks. That’s the vibe. πŸ’…

✨ SYNOPSIS ✨

Okay so the whole struct is literally right here, bestie β€” every field, exactly as the page gives it:

       struct vfio_iommu_driver_ops {
           char *name;
           struct module   *owner;
           void *(*open)(unsigned long arg);
           void (*release)(void *iommu_data);
           long (*ioctl)(void *iommu_data, unsigned int cmd, unsigned long
       arg);
           int (*attach_group)(void *iommu_data, struct iommu_group *group,
       enum vfio_group_type);
           void (*detach_group)(void *iommu_data, struct iommu_group *group);
           int (*pin_pages)(void *iommu_data, struct iommu_group *group,
       dma_addr_t user_iova, int npage, int prot, struct page **pages);
           void (*unpin_pages)(void *iommu_data, dma_addr_t user_iova, int
       npage);
           void (*register_device)(void *iommu_data, struct vfio_device *vdev);
           void (*unregister_device)(void *iommu_data, struct vfio_device
       *vdev);
           int (*dma_rw)(void *iommu_data, dma_addr_t user_iova, void *data,
       size_t count, bool write);
           struct iommu_domain *(*group_iommu_domain)(void *iommu_data, struct
       iommu_group *group);
        };

πŸ’… Members πŸ’…

The original page hits us with the Members heading and then… nothing else. Literally a cliffhanger. 😭 No member-by-member breakdown on this page β€” the members are the fields up in the struct, and that’s the whole thing. 🫢

🌈 SEE ALSO 🌈

  • Kernel file: ./drivers/vfio/vfio.h β€” that’s the one it points you to. πŸ‘‘

okay bye bestie πŸŽ€ this page is from ./drivers/vfio, dated October 2026, and the footer title is literally struct vfio_...u_driver_ops(9) β€” periodt. πŸ’œ

πŸ“¦ where this page comes from