]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu: Add iommu_copy_struct_from_full_user_array helper
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 5 Nov 2024 20:05:13 +0000 (12:05 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 12 Nov 2024 15:46:19 +0000 (11:46 -0400)
commit4f2e59ccb69866c5165525bd7aee47cd5cd00acc
treedda2e35185c7bb91525536abdf26140342fce155
parent54ce69e36c71c88f258b1a322c54343d90954858
iommu: Add iommu_copy_struct_from_full_user_array helper

The iommu_copy_struct_from_user_array helper can be used to copy a single
entry from a user array which might not be efficient if the array is big.

Add a new iommu_copy_struct_from_full_user_array to copy the entire user
array at once. Update the existing iommu_copy_struct_from_user_array kdoc
accordingly.

Link: https://patch.msgid.link/r/5cd773d9c26920c5807d232b21d415ea79172e49.1730836308.git.nicolinc@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
include/linux/iommu.h