STRUCT PT_IOMMU_CFG(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms