cros_ec_moti...end_host_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 🌈

  • 0 on success ✨
  • -errno on failure πŸ’€

that's the whole return section, short and iconic, ate and left no crumbs.


πŸ”₯ SEE ALSO πŸ”₯


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 same cros_ec_moti...end_host_cmd(9) title. go read the sensors core file, ily, bye! πŸ“πŸ§šπŸ’–
πŸ“¦ where this page comes from