Re: [PATCH v1 03/16] iommu: Add iommu_copy_struct_to_user helper

ALOK TIWARI
2025-04-11T12:36:22Z

On 11-04-2025 12:07, Nicolin Chen wrote:
> + * iommu_copy_struct_to_user - Report iommu driver specific user space data
> + * @user_data: Pointer to a struct iommu_user_data for user space data location
> + * @ksrc: Pointer to an iommu driver specific user data that is defined in
> + * include/uapi/linux/iommufd.h
> + * @data_type: The data type of the @ksrc. Must match with @user_data->type
> + * @min_last: The last memember of the data structure @ksrc points in the

old typo memember -> member

> + * initial version.
> + * Return 0 for success, otherwise -error.

Thanks,
Alok