cros_ec_read_features(9)
π cros_ec_read_features β the Kernel API Manual tea β
okay so bestie, you're looking at cros_ec_read_features(9) β that's the manual page name and the whole entire vibe of this doc. she lives in the Kernel API Manual and she's about one (1) job: reading them EC features. no cap. π¦
β¨ NAME β¨
cros_ec_read_features β literally just Read EC features. that's it. that's the whole name section. iconic behavior honestly π
πΈ SYNOPSIS πΈ
int cros_ec_read_features (struct cros_ec_dev *ec );
so she takes one friend and she returns an int. simple queen energy π
π ARGUMENTS π
ecβ the EC device. that's your bestie right there, thestruct cros_ec_dev *you're handing over. she needs it, don't ghost her π«Ά
π₯ RETURN π₯
>= 0β slay!! success!! we ate π- negative error number β not slay π something went wrong, and the number tells you what. read it, don't ignore it, that's the whole point of her.
π¦ SEE ALSO π¦
okay this is the group chat and everyone's invited, no one gets left on read:
- the kernel file
./drivers/platform/chrome/cros_ec_proto.cβ the source, the origin story, the mothership β 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_check_features(9)cros_ec_get_sensor_count(9)cros_ec_cmd(9)cros_ec_cmd_readmem(9)cros_ec_get_cmd_versions(9)cros_ec_device_registered(9)
like, go read them. all of them. iykyk π
ngl bestie this whole page is short but she's got range β one device pointer in, one status out, and a whole ecosystem of EC functions waiting for you in the SEE ALSO. go be the main character of your own driver π§
and that's the whole page, periodt πβ¨
courtesy of the fine folks living in ./drivers/platform/chrome, stamped October 2026, and officially filed under cros_ec_read_features(9). 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