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

ALOK TIWARI alok.a.tiwari at oracle.com
Fri Apr 11 05:35:30 PDT 2025



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



More information about the linux-arm-kernel mailing list