STRUCT GTH_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct gth_device(9) β€” the Kernel API Manual glow-up

okay bestie, welcome to the struct gth_device(9) page from the Kernel API Manual β€” yes that's the manual name, it's giving "official", it's giving "read me before you touch the GTH" πŸŽ€


✨ NAME ✨

struct gth_device β€” literally the GTH device struct, that's the whole vibe πŸ’œ


🌸 SYNOPSIS 🌸

struct gth_device {
    struct device           *dev;
    void __iomem            *base;
    struct attribute_group  output_group;
    struct attribute_group  master_group;
    struct gth_output       output[TH_POSSIBLE_OUTPUTS];
    signed char             master[TH_CONFIGURABLE_MASTERS + 1];
    spinlock_t gth_lock;
 };

look at her. iconic. no cap, every one of those members matters, so let's go through them one by one 🫢


πŸ‘‘ Members πŸ‘‘

  • dev β€” the driver core's device 🧚 that's the big one, the main character pointer.
  • base β€” register window base address ⭐ like the address where the register window starts, periodt.
  • output_group β€” attributes describing output ports 🌈 yes, the attributes that describe the output ports.
  • master_group β€” attributes describing master assignments πŸ’« same energy, but for master assignments.
  • output β€” output ports πŸ”₯ straight up, the output ports.
  • master β€” master/output port assignments πŸ¦‹ the assignments between master and output port, iykyk.
  • gth_lock β€” serializes accesses to GTH bits πŸ’… a spinlock_t that keeps things from stepping on each other. she's the vibe check for GTH bit access, no cap.

πŸ” SEE ALSO πŸ”

bestie you have to check these out, they're all in the kernel file ./drivers/hwtracing/intel_th/gth.c:

like, the whole friend group fr fr πŸ’–


okay that's the page!! mwah πŸ’‹ this little beauty lives in ./drivers/hwtracing/intel_th and the version stamp says October 2026 β€” so mark your calendar bestie, slay πŸŒŸπŸ‘‘

πŸ“¦ where this page comes from