sensor_hub_...tribute_info(9)
π sensor_hub_input_get_attribute_info(9) π
okay so welcome to the Kernel API Manual, section 9 bestie β this is the page for sensor_hub_input_get_attribute_info, and no I will not be shortening that name, it's giving full government name energy and we respect it π
β¨ NAME β¨
sensor_hub_input_get_attribute_info β get an attribute information π«Ά
πΈ SYNOPSIS πΈ
int sensor_hub_input_get_attribute_info (struct hid_sensor_hub_device
*hsdev , u8 type , u32 usage_id , u32 attr_usage_id , struct
hid_sensor_hub_attribute_info *info );
like, that's the whole signature, no cap π
π¦ ARGUMENTS π¦
hsdevβ the hub device instance, aka the main character of this whole situation πtypeβ type of this attribute, and it's one ofinput/output/featureπusage_idβ the attribute usage id of the parent physical device, as per spec πattr_usage_idβ the attribute usage id, also as per spec, yes there are two of them and yes you need both πinfoβ where the info goes: it returns information about the attribute after parsing the report π
π DESCRIPTION π
so what it actually does: it parses the report and hands you back the attribute information β think report id, field index, units, exponent, etc. β¨ literally the whole little info bundle, parsed and served π§
ngl the "etc." at the end is doing a lot of heavy lifting, but that's what the original says so that's what we're saying π
π« SEE ALSO π«
kernel file ./include/linux/hid-sensor-hub.h β go read it, iykyk π
struct hid_sensor_hub_attribute_info(9)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_attr_read_values(9)sensor_hub_set_feature(9)sensor_hub_get_feature(9)
like a whole friend group of functions, obsessed π
okay that's the page!! sourced from ./include/linux, dated October 2026, and yes the title up top still says sensor_hub_...tribute_info(9) because the header truncates it and we simply don't fight the header π mwah, go parse some reports bestie π«Άβ¨π
π¦ 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