STRUCT SCMI_SENSOR_AXIS_INFO(9)
πΈ struct scmi_sensor_axis_info β bestie's guide to one sensor axis πΈ
okay so this is a page from the Kernel API Manual, and ngl it's lowkey iconic: struct scmi_sensor_axis_info describes exactly ONE sensor axes. that's it. that's the whole vibe. one axis, all the deets, main character energy β¨
β¨ NAME β¨
struct scmi_sensor_axis_info β describes one sensor axes π
π SYNOPSIS π
struct scmi_sensor_axis_info {
unsigned int id;
unsigned int type;
int scale;
char name[SCMI_MAX_STR_SIZE];
bool extended_attrs;
unsigned int resolution;
int exponent;
struct scmi_range_attrs attrs;
};
like, look at her. so structured. so put together. π«Ά
π¦ MEMBERS π¦
idβ the axes ID. the little name tag of the axis, its whole identity fr fr πͺͺtypeβ the axes type. it gets chosen amongst one ofenum scmi_sensor_classβ so it's always one of those, no improvising π―scaleβ a power-of-10 multiplier that gets applied to the axis unit. a lil glow-up number for the units β¨nameβ aNULL-terminated string that's the axes name, exactly as advertised by the SCMI platform. it's giving official government name πextended_attrsβ flag that says "hey, there are additional extended attributes for this axes". a little yes/no situation πresolutionβ extended attribute representing the resolution of the axes. set to0if it's not reported by this axes. (so0is the "no data, don't @ me" value π)exponentβ extended attribute representing the power-of-10 multiplier that gets applied to theresolutionfield. set to0if it's not reported by this axes. bestiesresolutionandexponentare literally a duo π€attrsβ extended attributes representing the minimum and maximum values measurable by this axes. set to0if it's not reported by this sensor. (yes, this one says sensor β not axes β that's just how it's written, don't come for me π)
π§ SEE ALSO π§
kernel file ./include/linux/scmi_protocol.h, and the whole friend group:
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_sensor_reading(9), struct scmi_range_attrs(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)
ok that's the whole page bestie π everything's here, nothing skipped, we ate and left no crumbs π
mwah π β this one lives in ./include/linux, dated October 2026, and it's the struct scmi_...or_axis_info(9) page of the Kernel API Manual. go forth and describe exactly one axes π
π¦ 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