[Intel-gfx] [PATCH v15 20/26] iommufd: Add iommufd_ctx_from_fd()
Jason Gunthorpe
jgg at nvidia.com
Tue Jul 18 16:55:51 UTC 2023
On Tue, Jul 18, 2023 at 06:55:45AM -0700, Yi Liu wrote:
> It's common to get a reference to the iommufd context from a given file
> descriptor. So adds an API for it. Existing users of this API are compiled
> only when IOMMUFD is enabled, so no need to have a stub for the IOMMUFD
> disabled case.
>
> Signed-off-by: Yi Liu <yi.l.liu at intel.com>
> ---
> drivers/iommu/iommufd/main.c | 24 ++++++++++++++++++++++++
> include/linux/iommufd.h | 1 +
> 2 files changed, 25 insertions(+)
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
Jason
More information about the Intel-gfx
mailing list