STRUCT HID_SENSOR_HUB_ATTRIBUTE_INFO(9)
๐ struct hid_sensor_hub_attribute_info(9) โ like, the Kernel API Manual moment ๐
okay so bestie, welcome to the Kernel API Manual and today's main character is struct hid_sensor_hub_attribute_info โจ she's iconic, she's a struct, and she's literally just here to hold Attribute info. that's the whole vibe. no cap.
โจ NAME โจ
struct hid_sensor_hub_attribute_info โ Attribute info ๐ฆ
๐ธ SYNOPSIS ๐ธ
struct hid_sensor_hub_attribute_info {
u32 usage_id;
u32 attrib_id;
s32 report_id;
s32 index;
s32 units;
s32 unit_expo;
s32 size;
s32 logical_minimum;
s32 logical_maximum;
};
she's giving very structured, very s32-heavy, very slay ๐
๐ MEMBERS ๐
usage_idโ the parent usage id of a physical device ๐ like, the fam she belongs to.attrib_idโ the attribute id for this attribute. her own personal name tag ๐ท๏ธreport_idโ the report id where this information resides. that's the report she lives in fr fr ๐indexโ the field index in the report ๐ so you know exactly where to look, iykyk.unitsโ the measurement unit for this attribute. is it degrees? is it something else? that's on her ๐unit_expoโ the exponent used in the data ๐งฎ math girlie behavior.sizeโ size in bytes for data size. yes, size for size ๐ญ that's what the manpage says, bestie, I don't make the rules.logical_minimumโ the logical minimum value for this attribute ๐ the floor, the absolute low.logical_maximumโ the logical maximum value for this attribute ๐ฅ the ceiling, the peak, the limit.
๐ SEE ALSO ๐
- Kernel file
./include/linux/hid-sensor-hub.h๐ (the struct lives here, go say hi) struct sensor_hub_pending(9)struct hid_sensor_hub_device(9)struct hid_sensor_hub_callbacks(9)sensor_hub_device_open(9)sensor_hub_device_close(9)sensor_hub_register_callback(9)sensor_hub_remove_callback(9)sensor_hub_input_get_attribute_info(9)sensor_hub_input_attr_read_values(9)sensor_hub_set_feature(9)sensor_hub_get_feature(9)
like, the whole friend group honestly ๐ซถ go read all of them, they're all linked, it's a whole ecosystem.
๐ reminder: everything above is straight from the source, so don't come for me if your units field is doing something unhinged โ she's just holding the info, not judging.
mwah ๐ this page came from ./include/linux, dated October 2026, and she's officially struct hid_s...tribute_info(9) โ truncated name and all, we love a mysterious queen โจ๐
๐ฆ 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