sensor_hub_...tribute_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 of input/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 πŸ“‚

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