STRUCT IOPTDESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct ioptdesc β€” the memory descriptor for IOMMU page tables, and yes bestie this is from the Kernel API Manual so bestie pay attention πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

struct ioptdesc {
    unsigned long __page_flags;
    struct list_head iopt_freelist_elm;
    unsigned long __page_mapping;
    union {
      u8 incoherent;
      pgoff_t __index;
    };
    void *_private;
    unsigned int __page_type;
    atomic_t __page_refcount;
  #ifdef CONFIG_MEMCG;
    unsigned long memcg_data;
  #endif;
   };

πŸ¦‹ Members πŸ¦‹

  • iopt_freelist_elm β€” literally the list element for a struct iommu_pages_list, slay 🫢
  • {unnamed_union} β€” anonymous, no name, just vibes πŸ™ˆ

πŸ”₯ Description πŸ”₯

Okay so real talk: this struct overlays struct page for now. Do not modify without a good understanding of the issues. Like, for real fr fr β€” this is not the place to improvise, bestie πŸ˜­πŸ’€


🌈 SEE ALSO 🌈


Kernel API Manual energy, straight from ./drivers/iommu, dated October 2026 β€” struct ioptdesc(9), mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from