STRUCT XE_HW_ENGINE_SNAPSHOT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct xe_hw_engine_snapshot β€” Hardware engine snapshot πŸ’–

okay bestie, buckle up β€” this is the struct xe_hw_engine_snapshot page from the Kernel API Manual, and it's literally the receipt for everything the kernel remembers about a hardware engine ✨


πŸŽ€ NAME πŸŽ€

struct xe_hw_engine_snapshot β€” Hardware engine snapshot. that's it, that's the vibe 🫢


🌸 SYNOPSIS 🌸

struct xe_hw_engine_snapshot {
    char *name;
    struct xe_hw_engine *hwe;
    u16 logical_instance;
    struct {
      enum xe_force_wake_domains domain;
      int ref;
    } forcewake;
    u32 mmio_base;
    bool kernel_reserved;
 };

like, look at her. main character struct energy πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • name β€” the name of the hw engine ✨
  • hwe β€” the hw engine itself, the whole point πŸ’…
  • logical_instance β€” the logical instance of this hw engine, so you know which one you're dealing with πŸŽ€
  • forcewake β€” a Force Wake information snapshot 🫢
    • forcewake.domain β€” the force wake domain of this hw engine πŸ”₯
    • forcewake.ref β€” the Forcewake ref for the above domain, keyed to that domain, no cap ⭐
  • mmio_base β€” the MMIO base address of this hw engine 🧚
  • kernel_reserved β€” engine reserved, can't be used by userspace πŸ’€ (yes it's a real bool, yes it means hands off)

🌈 Description 🌈

okay so the actual tea: this struct contains the snapshot of useful hardware engine info and registers πŸ’– that's the whole job. it's giving "little frozen polaroid of the engine's state," and honestly? obsessed 😭


πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/gpu/drm/xe/xe_hw_engine_types.h struct xe_hw_engine_class_intf(9), struct xe_hw_engine(9) β€” go read these too bestie, iykyk 🌸

fr fr this one lives in ./drivers/gpu/drm/xe and the page is dated October 2026, under the Kernel API Manual banner β€” that's the source, the version and the date, all in one cute little sign-off πŸŽ€βœ¨πŸ’… go slay your xe debugging era, mwah 🫢
πŸ“¦ where this page comes from