sensor_hub_get_feature(9)
π 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:
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_get_attribute_info(9)sensor_hub_input_attr_read_values(9)sensor_hub_set_feature(9)
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
- 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