iommu_copy_s...l_user_array(9)
πΈ NAME πΈ
iommu_copy_struct_from_full_user_array β Copy iommu driver specific user space data from an iommu_user_data_array π
okay so this is the Kernel API Manual page for iommu_copy_s...l_user_array(9), and it's literally about copying a whole user array into your driver's data holder. Bestie, the vibes are "kernel plumbing but make it cute" π
β¨ SYNOPSIS β¨
int iommu_copy_struct_from_full_user_array (void *kdst , size_t
kdst_entry_size , struct iommu_user_data_array *user_array , unsigned
int data_type );
π¦ ARGUMENTS π¦
kdstβ Pointer to an iommu driver specific user data that is defined ininclude/uapi/linux/iommufd.hπkdst_entry_sizeβsizeof(*kdst)β like, literally that. π«Άuser_arrayβ Pointer to astruct iommu_user_data_arrayfor a user space array πdata_typeβ The data type of thekdst. Must match withuser_array->typeβ no cap, they gotta match. π
π DESCRIPTION π
Copy the entire user array. β¨ kdst must have room for kdst_entry_size * user_array->entry_num bytes. Return 0 for success, otherwise -error. That's the whole tea, bestie β don't forget the room math or it's giving sadness π
π SEE ALSO π
The kernel file is ./include/linux/iommu.h β and here's the whole bestie squad of references, every single one:
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(9)__iommu_copy_struct_from_user_array(9)iommu_copy_struct_from_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)
mwah π that's the whole page! This one lives in ./include/linux, is dated October 2026, and its footer name is iommu_copy_s...l_user_array(9) β bye bestie, go copy those arrays responsibly π«Άβ¨
π¦ 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