cros_ec_sensors_core_write(9)
β¨ cros_ec_sensors_core_write β¨
okay so bestie, welcome to the Kernel API Manual π this is the page for cros_ec_sensors_core_write(9) β the literal function that writes a value to the sensor, no cap. it's giving "I'm the one who actually commits" energy π
πΈ NAME πΈ
cros_ec_sensors_core_write β function to write a value to the sensor π«Ά
π¦ SYNOPSIS π¦
int cros_ec_sensors_core_write (struct cros_ec_sensors_core_state *st ,
struct iio_chan_spec const *chan , int val , int val2 , long mask );
she's compact, she's iconic, she takes five args and returns an int β periodt π
π ARGUMENTS π
stβ pointer to state information for device. this is the main character's whole backstory, all the state info, right there πchanβ channel specification structure table. yes bestie, a table β that's the channel spec, okay? πvalβ first part of value to write. the first half of the duo β¨val2β second part of value to write. the other half, they come as a set fr fr π«Άmaskβ specifies which values to write. like, which ones are you actually locking in π₯
π RETURN π
returns the type of value returned by the device π§ β that's what you get back, that's the vibe check result, iykyk
π₯ SEE ALSO π₯
- Kernel file
./drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.cβ the source of truth, the origin story π 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(9)cros_ec_sensors_core_read_avail(9)
the whole friend group honestly, they all ate π
ngl bestie, this is the Kernel API Manual version of the page, and it's dated October 2026 β so like, future energy β the source lives over at./drivers/iio/common/cros_ec_s...and the page itself iscros_ec_sensors_core_write(9). go read the whole squad above, 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