STRUCT IOMMU_USER_DATA_ARRAY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct iommu_user_data_array β€” Kernel API Manual ✨

okay so bestie, gather round, because this one is lowkey a whole vibe. it's from the Kernel API Manual, and it's literally the struct that describes an array of iommu driver–specific user space data. yes, an array. not one, a whole squad. 🫢


🌸 NAME 🌸

struct iommu_user_data_array β€” iommu driver specific user space data array

like, it's giving "user space sent us a whole list of requests and we gotta handle them all." periodt. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

struct iommu_user_data_array {
    unsigned int type;
    void __user *uptr;
    size_t entry_len;
    u32 entry_num;
 };

there she is. four members, zero notes, absolutely iconic. ⭐


πŸ¦‹ Members πŸ¦‹

  • type β€” the data type of all the entries in the user buffer array. yes, every single one of them. no mixing and matching, bestie, they all gotta match. πŸ’…
  • uptr β€” pointer to the user buffer array. it's the address where the whole lineup lives. πŸ“
  • entry_len β€” the fixed-width length of an entry in the array, and it's measured in bytes. fixed-width means every entry is the same size, no cap. πŸ“
  • entry_num β€” the number of total entries in the array. the headcount. the whole roster. πŸ”’

πŸ’œ Description πŸ’œ

so the user buffer includes an array of requests, and the format of those requests is defined in include/uapi/linux/iommufd.h. that's the blueprint, the source of truth, the whole aesthetic. go look there if you want the actual layout, because that's where it lives. πŸ—‚οΈβœ¨


🌈 SEE ALSO 🌈

Kernel file ./include/linux/iommu.h, plus the whole friend group:


and that's the whole page, bestie, no crumbs left behind πŸ“πŸ’–

sign-off szn: this little beauty comes from ./include/linux and it's dated October 2026. manifesting that date being real for you. mwah. πŸ§šβ€β™€οΈπŸ’«
πŸ“¦ where this page comes from