cros_ec_check_features(9)
β¨ cros_ec_check_features β¨
okay so bestie, welcome to the Kernel API Manual entry for cros_ec_check_features β yes it's a mouthful, yes it's iconic, no you don't have to say it out loud π
πΈ NAME πΈ
cros_ec_check_features β the little vibe check that tells you whether the EC actually has the feature you're thirsting over β¨
π¦ SYNOPSIS π¦
bool cros_ec_check_features (struct cros_ec_dev *ec , int feature );
π ARGUMENTS π
ecβ your EC device, bestie. and listen β it does not have to be connected directly to the AP. it can be daisy chained through another device, and honestly? respect the networking. π«Άfeatureβ one of theec_feature_codebits. literally just one, pick your fave π
π DESCRIPTION π
call this function to test whether the ChromeOS EC supports a feature. that's it, that's the whole job, and it does it flawlessly. main character energy fr fr π
β RETURN β
trueif it's supported πfalseif it's not supported β (or if an error was encountered, which, yeah, π)
π SEE ALSO π
kernel file: ./drivers/platform/chrome/cros_ec_proto.c
the whole friend group, no cap:
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_get_sensor_count(9)cros_ec_cmd(9)cros_ec_cmd_readmem(9)cros_ec_get_cmd_versions(9)cros_ec_device_registered(9)
ngl that's the whole page, go forth and feature-check responsibly π§ββοΈπ
so this little baddie lives at ./drivers/platform/chrome, it's from October 2026, and it's filed under the Kernel API Manual β periodt, that's the sign-off, love u, 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