STRUCT IOMMU_HWPT_INVALIDATE_SELFTEST(9)
π struct iommu_hwpt_invalidate_selftest β a Kernel API Manual moment (yes, that's the manual name, we're fancy)
okay so bestie, welcome to the glow-up of struct iommu_hwpt_invalidate_selftest(9) β it's the invalidation data for the Mock driver, and its whole entire vibe is IOMMU_HWPT_INVALIDATE_DATA_SELFTEST. She's niche, she's specific, she's iconic. π
β¨ NAME β¨
struct iommu_hwpt_invalidate_selftest β Invalidation data for Mock driver (IOMMU_HWPT_INVALIDATE_DATA_SELFTEST). literally what she says on the tin, no cap. π«Ά
πΈ SYNOPSIS πΈ
struct iommu_hwpt_invalidate_selftest {
#define IOMMU_TEST_INVALIDATE_FLAG_ALL (1 << 0);
__u32 flags;
__u32 iotlb_id;
};
that's the whole struct, bestie β two __u32s and a #define living its best life right there in the middle. we don't question it, we just respect it. π
π¦ Members π¦
flagsβ Invalidate flags. the ~vibes~ switches of this whole operation. π₯iotlb_idβ Invalidate iotlb entry index. which entry are we talking about? this one. exactly this one. π
β Description β
so here's the tea: if IOMMU_TEST_INVALIDATE_ALL is set in flags, then iotlb_id will be ignored. like, fully ignored. she said "not today" and moved on. π
heads up bestie β the define in the struct isIOMMU_TEST_INVALIDATE_FLAG_ALLand the description saysIOMMU_TEST_INVALIDATE_ALL. those are two different strings, fr fr, and we're keeping both exactly as written. not me fixing them, not me merging them. iykyk. π
π SEE ALSO π
- Kernel file
./drivers/iommu/iommufd/iommufd_test.hβ go read the source, it's giving main character energy π§ struct iommu_hwpt_selftest(9)struct iommu_viommu_selftest(9)struct iommu_viommu_invalidate_selftest(9)
all her little selftest siblings, slaying in the same header. π
and that's the whole page pookie β brought to you by the Kernel API Manual, from ./drivers/iommu/iommufd, dated October 2026. mwah, go invalidate something responsibly π
β¨π
π¦ 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