cros_ec_sensors_core_read(9)
π cros_ec_sensors_core_read(9) β Kernel API Manual π
okay bestie, so this is a page from the Kernel API Manual, and the star of the show is cros_ec_sensors_core_read. Buckle up, it's giving "small function, big job" energy β¨
πΈ NAME πΈ
cros_ec_sensors_core_read β literally the function you call to request a value from the sensor π«Ά
β¨ SYNOPSIS β¨
int cros_ec_sensors_core_read (struct cros_ec_sensors_core_state *st ,
struct iio_chan_spec const *chan , int *val , int *val2 , long mask );
π¦ ARGUMENTS π¦
stβ pointer to state information for device. it's the whole personality of the device tbh πchanβ channel specification structure table πvalβ will contain one element making up the returned value. yes bestie, one element πval2β will contain another element making up the returned value. the sequel β¨maskβ specifies which values to be requested. iykyk π₯
π RETURN π
the type of value returned by the device π«
π SEE ALSO π
Kernel file ./drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
and the whole friend group, fr fr:
cros_ec_sensors_core_init(9)cros_ec_sensors_core_register(9)cros_ec_motion_send_host_cmd(9)cros_ec_sensors_idx_to_reg(9)cros_ec_sensors_read_until_not_busy(9)cros_ec_sensors_read_data_unsafe(9)cros_ec_sensors_read_lpc(9)cros_ec_sensors_read_cmd(9)cros_ec_sensors_capture(9)cros_ec_sensors_core_read_avail(9)cros_ec_sensors_core_write(9)
and that's the whole page, no cap π
sourced from ./drivers/iio/common/cros_ec_s..., dated October 2026 β ty for coming to my ted talk, mwah π§π
π¦ 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