intel_th_alloc(9)
π intel_th_alloc(9) π
okay bestie, welcome to the Kernel API Manual β today's main character is intel_th_alloc(9), and honestly? she's giving "let me build you a whole device from scratch" energy π
β¨ NAME β¨
intel_th_alloc β allocate a new Intel TH device and its subdevices π«Ά (yes, all of them, we're not doing half a job here)
πΈ SYNOPSIS πΈ
struct intel_th * intel_th_alloc (struct device *dev , const struct
intel_th_drvdata *drvdata , struct resource *devres , unsigned int
ndevres );
look at that signature. four args. no cap, she's a lot but she's worth it π
π¦ ARGUMENTS π¦
devβ the parent device π like, the device this whole thing belongs todrvdataβ data private to the driver π it's hers, don't touchdevresβ resources indexed byth_mmio_idxβ that index is doing the heavy lifting here, iykykndevresβ number of entries in thedevresresources π’ literally just how many are in there
lowkey important:devresandndevresare a team.ndevresis the count,devresis the array. don't @ me.
π SEE ALSO π
- Kernel file
./drivers/hwtracing/intel_th/core.cβ the source, go read her π§ intel_th_output_enable(9)intel_th_trace_enable(9)intel_th_trace_switch(9)intel_th_trace_disable(9)
the whole friend group fr fr π₯
okay so that's the page!! ./drivers/hwtracing/intel_th, dated October 2026, filed forever under intel_th_alloc(9) β¨ go forth and allocate, bestie ππ
π¦ 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