STRUCT IOMMU_VIOMMU_INVALIDATE_SELFTEST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME

struct iommu_viommu_invalidate_selftest β€” the invalidation data for the Mock VIOMMU, a.k.a. IOMMU_VIOMMU_INVALIDATE_DATA_SELFTEST πŸ’… and yes bestie that whole long name is the vibe, we're not shortening it


✨ SYNOPSIS

okay so here's the struct, look at her πŸ‘‘

struct iommu_viommu_invalidate_selftest {
  #define IOMMU_TEST_INVALIDATE_FLAG_ALL (1 << 0);
    __u32 flags;
    __u32 vdev_id;
    __u32 cache_id;
 };

πŸŽ€ Members

  • flags β€” the invalidate flags 🚩 like what kind of invalidation we're doing here
  • cache_id β€” the invalidate cache entry index πŸ”’ the lil number of the entry you're targeting
also vdev_id is right there in the struct, sitting between them, being mysterious 🫢 not gonna make up a backstory for it, it's just in there, read the struct

πŸ’– DESCRIPTION

so listen β€” if IOMMU_TEST_INVALIDATE_ALL is set in flags, then cache_id will be ignored πŸ’€ literally not even looked at. setting it is giving "talking but nobody's listening" energy. periodt.


πŸ¦‹ SEE ALSO

  • Kernel file ./drivers/iommu/iommufd/iommufd_test.h
  • struct iommu_hwpt_selftest(9)
  • struct iommu_hwpt_invalidate_selftest(9)
  • struct iommu_viommu_selftest(9)

go read them, they're iconic too, iykyk 🌈


alright bestie that's the whole page, ily, go touch grass but like after you check the source 🌱 the source is ./drivers/iommu/iommufd, this dropped in October 2026, and it's part of the Kernel API Manual β€” mwah, mwah, and one more mwah for luck πŸ§šπŸ’œ

πŸ“¦ where this page comes from