STRUCT TSENS_PLAT_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct tsens_plat_data(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for struct tsens_plat_data β€” literally the vibe check sheet for tsens at compile time πŸŽ€


🌸 NAME 🌸

struct tsens_plat_data β€” tsens compile-time platform data

Like, it's the little info card your thermal sensor platform fills out before anything even boots. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct tsens_plat_data {
    const u32               num_sensors;
    const struct tsens_ops  *ops;
    unsigned int            *hw_ids;
    struct tsens_features   *feat;
    const struct reg_field          *fields;
    bool no_irq_wake;
 };

copy it exactly, bestie, don't you dare retype it πŸ™ˆ


πŸ’… Members πŸ’…

  • num_sensors β€” how many sensors this platform supports. that's the count, periodt.
  • ops β€” the operations the tsens instance supports. it's giving "here's what I can actually do" ✨
  • hw_ids β€” a subset of the sensor ids the platform supports, used if it's not the first n. iykyk β€” if you're just doing the first n, you don't need this.
  • feat β€” the features of the IP. main character energy for the hardware's capabilities πŸ‘‘
  • fields β€” the bitfield locations. literally where the bits live πŸ—ΊοΈ
  • no_irq_wake β€” if this is set, TSENS interrupts will not be configured as wakeup sources. so like, if set, no wakey-wakey from the sensor 😴

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/thermal/qcom/tsens.h
  • struct tsens_sensor(9)
  • struct tsens_ops(9)
  • struct tsens_features(9)
  • struct tsens_context(9)
  • struct tsens_priv(9)
  • struct tsens_single_value(9)
  • struct tsens_legacy_calibration_format(9)

also the directory ./drivers/thermal/qcom β€” that's where the whole friend group lives 🫢


and that's the page, bestie!! 🌈 kernel file ./drivers/thermal/qcom/tsens.h, dated October 2026, living in ./drivers/thermal/qcom β€” slay, ate, no crumbs πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from