cros_ec_moti...end_host_cmd(9)
π NAME π
okay so welcome to the manual page for cros_ec_motion_send_host_cmd(9) β yeah the header up top says cros_ec_moti...end_host_cmd(9) and the manual is the Kernel API Manual, but bestie, the actual function name is the full thing, and it's literally just: send motion sense host command. that's the whole vibe. π
β¨ SYNOPSIS β¨
int cros_ec_motion_send_host_cmd (struct cros_ec_sensors_core_state
*state , u16 opt_length );
like yes that's it, that's the whole call. a struct and a u16. we love a short signature. π«Ά
π¦ ARGUMENTS π¦
stateβ pointer to state information for device. it's giving "the whole situation lives in here" energy, you just hand it over. πopt_lengthβ an optional length to reduce the response size, which is useful on the data path. otherwise? the maximal allowed response size is used. so if you don't pass a shorter one, you're getting the biggest allowed response, no cap. πΈ
π DESCRIPTION π
when you call this, the sub-command is assumed to be set in param->cmd. that's the whole thing β it doesn't go figure out what command you want, you already told it, it's just here to send it. so like. double check that before you call, bestie, because the vibes are "assumed" and we all know what assumption does. π
π RETURN π
0on success β¨-errnoon failure π
that's the whole return section, short and iconic, ate and left no crumbs.
π₯ SEE ALSO π₯
- the kernel file:
./drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c cros_ec_sensors_core_init(9)cros_ec_sensors_core_register(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)cros_ec_sensors_core_write(9)
so that's the whole page! source file on the footer is./drivers/iio/common/cros_ec_s...(truncated, yeah, the manpage tool did that to us π), version/date is October 2026, and the footer repeats that samecros_ec_moti...end_host_cmd(9)title. go read the sensors core file, ily, bye! ππ§π
π¦ 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