iommu_copy_struct_from_user(9)
π iommu_copy_struct_from_user(9) π
okay bestie, so this is a page from the Kernel API Manual and it's literally about iommu_copy_struct_from_user β the little helper that copies iommu driver specific user space data π¦ no cap, that's the whole vibe.
β¨ NAME β¨
iommu_copy_struct_from_user β copy iommu driver specific user space data π
πΈ SYNOPSIS πΈ
iommu_copy_struct_from_user (kdst , user_data , data_type , min_last );
π ARGUMENTS π
kdstβ pointer to an iommu driver specific user data that is defined ininclude/uapi/linux/iommufd.hπ that's where your struct lives, go say hi.user_dataβ pointer to astruct iommu_user_datathat carries the user space data info π«Ά it's like the little info card for the data.data_typeβ the data type of thekdst. it must match withuser_data->typeβ οΈ like, must must. no mismatching allowed, that's the rule.min_lastβ the last member of the data structurekdstpoints in the initial version. Return0for success, otherwise-errorπ yes, that's literally what it says:0for success, otherwise-error.
π SEE ALSO π
okay this list is lowkey iconic, it's giving "the whole iommu friend group" β and it starts with the kernel file ./include/linux/iommu.h:
struct iommu_fault_page_request(9)struct iommu_fault(9)enum iommu_page_response_code(9)struct iommu_page_response(9)struct iopf_queue(9)struct iommu_resv_region(9)struct iommu_iotlb_gather(9)struct iommu_dirty_bitmap(9)struct iommu_dirty_ops(9)struct iommu_user_data(9)struct iommu_user_data_array(9)__iommu_copy_struct_from_user(9)__iommu_copy_struct_from_user_array(9)iommu_copy_struct_from_user_array(9)iommu_copy_struct_from_full_user_array(9)__iommu_copy_struct_to_user(9)iommu_copy_struct_to_user(9)struct iommu_ops(9)struct iommu_domain_ops(9)struct iommu_device(9)struct iommu_fault_param(9)struct dev_iommu(9)iommu_iotlb_gather_is_disjoint(9)iommu_iotlb_gather_add_range(9)iommu_iotlb_gather_add_page(9)struct iommu_fwspec(9)struct iommu_sva(9)iommu_map_sgtable(9)
fr fr, go read them, they ate π₯
ngl there's no ERRORS section here, so if something goes sideways just remember thatmin_lastsays Return0for success, otherwise-errorβ that's your whole mood check π
and that's the page bestie!! π§ sign-off time: this one lives in ./include/linux, dated October 2026, and it's page iommu_copy_struct_from_user(9) β periodt π
β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms