iommu_copy_s...l_user_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 in include/uapi/linux/iommufd.h πŸ‘‘
  • kdst_entry_size β€” sizeof(*kdst) β€” like, literally that. 🫢
  • user_array β€” Pointer to a struct iommu_user_data_array for a user space array πŸ“
  • data_type β€” The data type of the kdst. Must match with user_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:


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