STRUCT PT_IOMMU_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct pt_iommu_cfg(9) β€” the Kernel API Manual glow-up ✨

okay so bestie, welcome to the struct pt_iommu_cfg(9) page β€” it's a section 9 kernel API manual entry and honestly it's giving "shared settings, but make it official" πŸŽ€


✨ NAME ✨

struct pt_iommu_cfg β€” Common configuration values for all formats. That's it, that's the whole vibe: one struct holding the config bits that every format needs. 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

struct pt_iommu_cfg {
    unsigned int features;
    u8 hw_max_vasz_lg2;
    u8 hw_max_oasz_lg2;
 };

look at her. three fields. immaculate. no cap. πŸ’…


πŸ‘‘ Members πŸ‘‘

  • features β€” the features you're requiring. Only these features will be turned on, periodt. And real talk: the feature list should reflect what the IOMMU HW is actually capable of β€” so don't be out here claiming stuff the hardware can't do, that's not the move πŸ™ˆ
  • hw_max_vasz_lg2 β€” the Maximum VA the IOMMU HW can support. Fair warning: this will imply the top level of the table, so like… it's kind of a big deal πŸ‘€
  • hw_max_oasz_lg2 β€” the Maximum OA the IOMMU HW can support. Slight catch though: the format might select a lower maximum OA, so this is the ceiling, not a promise πŸ”₯

πŸ’– SEE ALSO πŸ’–

  • Kernel file ./include/linux/generic_pt/iommu.h
  • IOMMU Radix Page Table(9)
  • struct pt_iommu(9)
  • struct pt_iommu_info(9)
  • struct pt_iommu_driver_ops(9)

like, go read those too, they're all in the same friend group iykyk 🫢


ngl the whole family is worth a read β€” this struct does not exist in a vacuum bestie πŸ’€

and that's the page!! mwah πŸ’‹ this one lives in ./include/linux/generic_pt, dated October 2026 β€” so when you're flipping through the kernel docs, tell 'em struct pt_iommu_cfg(9) sent you πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from