cros_ec_check_features(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the ec_feature_code bits. 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 ⭐

  • true if it's supported πŸ’…
  • false if 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:


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