intel_th_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 to
  • drvdata β€” data private to the driver πŸ™ˆ it's hers, don't touch
  • devres β€” resources indexed by th_mmio_idx ⭐ that index is doing the heavy lifting here, iykyk
  • ndevres β€” number of entries in the devres resources πŸ”’ literally just how many are in there
lowkey important: devres and ndevres are a team. ndevres is the count, devres is the array. don't @ me.

🌈 SEE ALSO 🌈

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