[PATCH 2/8] iommufd: replace attach_fn with a structure