diff options
author | Yi Liu <[email protected]> | 2023-07-18 06:55:45 -0700 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2023-07-25 10:19:53 -0600 |
commit | 1c9dc07487cb0f246075b2d3b305bba91156d376 (patch) | |
tree | d0c650d7449e67bb9b886d6dcb2350c6436bc28f /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 5c6de3ea73768d1781024e4a41f77d6d71bc64cb (diff) |
iommufd: Add iommufd_ctx_from_fd()
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.
Tested-by: Yanting Jiang <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions