STRUCT IOMMU_HWPT_INVALIDATE_SELFTEST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 is IOMMU_TEST_INVALIDATE_FLAG_ALL and the description says IOMMU_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