scmi_sensor..._timestamped(9)
π scmi_sensor_reading_get_timestamped(9) β like, the timestamped one
okay so bestie, welcome to the Kernel API Manual β¨ this is the page for scmi_sensor_reading_get_timestamped, and no you're not hallucinating, the name really does have that lil ellipsis situation going on π (that's scmi_sensor..._timestamped if you're being formal about it). grab a strawberry drink π and let's get into it.
πΈ NAME πΈ
scmi_sensor_reading_get_timestamped β read multiple-axis timestamped values π«
like, multiple axes, with timestamps. it's giving "I want the whole picture, not just one number" energy fr fr.
β¨ SYNOPSIS β¨
int scmi_sensor_reading_get_timestamped (const struct
scmi_protocol_handle *ph , u32 sensor_id , u8 count , struct
scmi_sensor_reading *readings );
it returns an int (we love a classic), and takes four things: ph, sensor_id, count, readings. all four matter, don't skip any π
π¦ ARGUMENTS π¦
phβ the Protocol handle. your little entry ticket to the SCMI protocol, basically. no handle, no vibes.sensor_idβ the Sensor ID. which sensor are we talking to? this one. πcountβ the length of the providedreadingsarray. i.e. how many slots you're handing over. don't lie to it about the size, that's not the move πreadingsβ an array of elements, and each one represents a timestamped per-axis reading of typestruct scmi_sensor_reading. so the returned readings come back ordered as the axis descriptors array included instruct scmi_sensor_infoβ and the max number of returned elements ismin(count, num_axis). ideally your provided array should be of lengthcountequal tonum_axisβ that's the dream scenario, the "we matched our energies" scenario π«Ά
ngl, thatmin(count, num_axis)is doing real work β if yourcountis smaller thannum_axis, you just get fewer back. it does not overflow your lil array. it's respectful like that. but likeβ¦ just makecountequal tonum_axis, bestie. it's the ideal and the manpage says so π
π₯ RETURN π₯
0on success. that's it. that's the whole return section.0= slay πβ¨
π SEE ALSO π
- the kernel file
./drivers/firmware/arm_scmi/sensors.cβ go read the source, it's literally right there π scmi_sensor_reading_get(9)β the non-timestamped cousin. same family, different energy.
okay that's the whole page, no cap π no extra options hiding in the cut, no secret env vars, this one is short and sweet like a good group chat reply π
later bestie π this page came from ./drivers/firmware/arm_scmi, dated October 2026, and it's living its best life in the Kernel API Manual. periodt. πβ¨
π¦ 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