sensor_hub_get_feature(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sensor_hub_get_feature(9) β€” Kernel API Manual πŸ’–

πŸŽ€ NAME πŸŽ€

sensor_hub_get_feature β€” Feature get request ✨

🌸 SYNOPSIS 🌸

int sensor_hub_get_feature (struct hid_sensor_hub_device *hsdev , u32
report_id , u32 field_index , int buffer_size , void *buffer );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • hsdev β€” hub device instance, aka the main character of this call πŸ’…
  • report_id β€” report id to look for πŸ”
  • field_index β€” field index inside a report 🎯
  • buffer_size β€” size of the buffer πŸ“
  • buffer β€” buffer to copy output πŸ«™

πŸ’œ DESCRIPTION πŸ’œ

okay so this one is used to get a field in a feature report, bestie. for example, this can get polling interval, sensitivity, activate/deactivate state β€” literally the little settings that matter. 🌈

πŸ”₯ RETURN πŸ”₯

on success, it returns the number of bytes copied to buffer β€” slay. on failure, it returns value < 0 β€” not slay, but at least you know. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file is ./include/linux/hid-sensor-hub.h, and the whole squad is here:


kisses bestie πŸ’‹ this page is from the source path ./include/linux, dated October 2026, and its manual page is sensor_hub_get_feature(9). periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from