> From: Liu, Yi L <yi.l.liu@xxxxxxxxx> > Sent: Monday, December 19, 2022 4:47 PM > > This prepares to add ioctls for device cdev fd. This infrastructure includes: > - vfio_iommufd_bind() to accept pt_id, and also return back dev_id to > caller. > - vfio_iommufd_attach() to support iommufd pgtable attach after > bind_iommufd. Please mention that pt_id==-1 implies detach. > > -int vfio_iommufd_bind(struct vfio_device *vdev, struct iommufd_ctx *ictx) > +/* @pt_id == NULL impplies detach */ s/impplies/implies/