STRUCT HID_SENSOR_HUB_ATTRIBUTE_INFO(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… 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 ๐Ÿ’œ

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