STRUCT GTH_DEVICE(9)
π 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 π aspinlock_tthat 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:
struct gth_output(9)intel_th_gth_stop(9)intel_th_gth_start(9)intel_th_gth_disable(9)intel_th_gth_enable(9)intel_th_gth_switch(9)intel_th_gth_assign(9)intel_th_gth_unassign(9)
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
- 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