__iommu_cop...ct_from_user(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __iommu_cop...ct_from_user(9) β€” like, the Kernel API Manual page you didn't know you needed πŸŽ€

okay bestie, so this is a page straight out of the Kernel API Manual (the (9) section, iykyk), and it's about one very specific little function that copies iommu driver specific user space data. yes it's niche. yes it's iconic. let's get into it ✨


🌸 NAME 🌸

__iommu_copy_struct_from_user β€” copies iommu driver specific user space data. that's the whole vibe fr fr πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int __iommu_copy_struct_from_user (void *dst_data , const struct
       iommu_user_data *src_data , unsigned int data_type , size_t data_len ,
       size_t min_len );

like, five things in, one int out. main character energy honestly πŸ‘‘


✨ ARGUMENTS ✨

  • dst_data β€” pointer to an iommu driver specific user data that is defined in include/uapi/linux/iommufd.h. this is where the goods land, bestie 🫢
  • src_data β€” pointer to a struct iommu_user_data for user space data info. it's giving "here's the tea about the user's data" β˜•
  • data_type β€” the data type of the dst_data. it must match with src_data.type β€” no cap, they gotta match or it's not it πŸ’€
  • data_len β€” length of current user data structure, i.e. sizeof(struct _dst). literally just how big the thing is πŸ“
  • min_len β€” initial length of user data structure for backward compatibility. this should be offsetofend using the last member in the user data struct that was initially added to include/uapi/linux/iommufd.h β€” it's the "we've gotta keep the old stuff working" number, respect it πŸ™

πŸ‘€ SEE ALSO πŸ‘€

the whole friend group came out for this one, so let's give them their moment πŸŽ€


that's the whole page, bestie. every argument, every reference, all of it. nothing skipped, we ate and left no crumbs πŸ’…

and that's a wrap on our little kernel journey! this one lives in ./include/linux and it's dated October 2026, filed under __iommu_cop...ct_from_user(9). go forth and copy those structs safely, queen πŸŒˆπŸ‘‘πŸ’œ

πŸ“¦ where this page comes from