cros_ec_get_sensor_count(9)
π cros_ec_get_sensor_count(9) π
okay so bestie, this is a page from the Kernel API Manual, and it's lowkey tiny but it's iconic. it's about counting MEMS sensors. that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
cros_ec_get_sensor_count β returns the number of MEMS sensors supported π
πΈ SYNOPSIS πΈ
int cros_ec_get_sensor_count(struct cros_ec_dev *ec);
π ARGUMENTS π
ecβ the EC device. and no, it does not have to be connected directly to the AP β it can be daisy chained through another device. she's flexible like that πββοΈ
π¦ RETURN π¦
< 0 in case of error. that's it, that's the whole return section. if it's negative, something went wrong, no cap π
π SEE ALSO π
- Kernel file
./drivers/platform/chrome/cros_ec_proto.c cros_ec_prepare_tx(9)cros_ec_check_result(9)cros_ec_get_host_event_wake_mask(9)cros_ec_get_host_command_version_mask(9)cros_ec_query_all(9)cros_ec_cmd_xfer(9)cros_ec_cmd_xfer_status(9)cros_ec_get_next_event(9)cros_ec_get_host_event(9)cros_ec_read_features(9)cros_ec_check_features(9)cros_ec_cmd(9)cros_ec_cmd_readmem(9)cros_ec_get_cmd_versions(9)cros_ec_device_registered(9)
like, the whole cros_ec friend group showed up to the function. we love a supportive ecosystem π
ngl the "SEE ALSO" list is giving β¨squad goalsβ¨ β go read those too, bestie, they're all in ./drivers/platform/chrome.
and that's the page!! sourced from ./drivers/platform/chrome, dated October 2026, and it lives at cros_ec_get_sensor_count(9) forever and ever. slay ππ§ββοΈβ
π¦ 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