STRUCT INTEL_TH(9)
β¨ struct intel_th(9) β¨
okay so bestie, buckle up π
this is a page from the Kernel API Manual and it's all about struct intel_th, which is literally the Intel TH controller. yes. that one. let's get into it π«Ά
πΈ NAME πΈ
struct intel_th β Intel TH controller β¨
π¦ SYNOPSIS π¦
struct intel_th {
struct device *dev;
struct intel_th_device *thdev[TH_SUBDEVICE_MAX];
struct intel_th_device *hub;
const struct intel_th_drvdata *drvdata;
struct resource resource[TH_MMIO_END];
int (*activate)(struct intel_th *);
void (*deactivate)(struct intel_th *);
unsigned int num_thdevs;
unsigned int num_resources;
int irq;
int num_irqs;
int id;
int major;
#ifdef CONFIG_MODULES;
struct work_struct request_module_work;
#endif ;
#ifdef CONFIG_INTEL_TH_DEBUG;
struct dentry *dbg;
#endif;
};
like, yes, that's the whole vibe of the thing π copy it exactly, don't @ me.
π Members π
okay so here's the breakdown of every member, no cap:
devβ the driver core's device, obvs. it's the device that holds this whole situation together π«Άthdevβ the subdevices β¨ like, the little guys hanging out inside the controller.hubβ the"switch"subdevice (GTH). that's literally what the original calls it, quotes and all πresourceβ the resources of the entire controller. all of them. the whole resource situation π₯num_thdevsβ number of devices in thethdevarray. the count. the headcount πnum_resourcesβ number of resources in theresourcearray. yes, another count. we love a count πirqβ irq number πnum_irqsβ number of IRQs is use. (that's the original's wording, bestie β "is use", not "in use" β i'm not fixing it, i'm just quoting it π)idβ this Intel TH controller's device ID in the system. its little name tag at the party π¦majorβ device node major for output devices. iconic. periodt π
ngl the struct also hasdrvdata,activate,deactivate,request_module_workanddbgchillin' in there β they're right up in the synopsis β but the Members list doesn't spell them out, so neither am i. i said what i said π
β SEE ALSO β
go look at these, iykyk:
- Kernel file
./drivers/hwtracing/intel_th/intel_th.h struct intel_th_output(9)struct intel_th_drvdata(9)struct intel_th_device(9)intel_th_device_get_resource(9)intel_th_output_assigned(9)struct intel_th_driver(9)
like, read them. they're giving lore π
aaaand that's the whole page, bestie π§ this little cutie lives over in ./drivers/hwtracing/intel_th, it's dated October 2026, and it's filed under struct intel_th(9) β mwah, slay, see you in the group chat πβ¨π
π¦ 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