STRUCT SCMI_SENSOR_READING(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct scmi_sensor_reading(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” this is the page for struct scmi_sensor_reading(9), and it’s giving tiny-but-iconic struct energy. It’s literally a read that comes with a timestamp. πŸŽ€

NAME πŸ¦‹

struct scmi_sensor_reading β€” here to represent a timestamped read. That’s the whole name-section moment: short, sweet, main-character struct vibes. ✨

SYNOPSIS ✨

the struct looks like this, bestie β€” copy it exactly, no cap:

struct scmi_sensor_reading {
    long long value;
    unsigned long long timestamp;
 };

Members πŸ‘‘

  • value β€” the signed value of the sensor read. It’s signed, okay? Keep it that way. 😭
  • timestamp β€” an unsigned timestamp for the sensor read, as provided by SCMI platform. Set to zero when not available β€” so zero means β€œno timestamp, bestie,” periodt. πŸ’…

Description 🌸

Used by the reading_get_timestamped method. That’s it β€” that’s the description. Lowkey iconic minimalism, fr fr. 🫢

SEE ALSO 🌈

Kernel file ./include/linux/scmi_protocol.h is right there in the mix, plus all these cross-refs β€” not a single one skipped, iykyk:

  • struct scmi_base_info(9)
  • struct scmi_clk_proto_ops(9)
  • struct scmi_perf_proto_ops(9)
  • struct scmi_power_proto_ops(9)
  • struct scmi_range_attrs(9)
  • struct scmi_sensor_axis_info(9)
  • struct scmi_sensor_intervals_info(9)
  • struct scmi_sensor_info(9)
  • struct scmi_sensor_proto_ops(9)
  • struct scmi_reset_proto_ops(9)
  • struct scmi_voltage_info(9)
  • struct scmi_voltage_proto_ops(9)
  • struct scmi_powercap_info(9)
  • struct scmi_powercap_proto_ops(9)
  • struct scmi_pinctrl_proto_ops(9)
  • struct scmi_notify_ops(9)
  • struct scmi_handle(9)
  • module_scmi_driver(9)
  • module_scmi_protocol(9)

🫢 source/version: ./include/linux Β· date: October 2026 Β· that’s the page, bestie β€” go be iconic. πŸ’œ

πŸ“¦ where this page comes from