cros_ec_get_cmd_versions(9)
β¨ cros_ec_get_cmd_versions β the Kernel API Manual glow-up β¨
okay so bestie, this page lives in the Kernel API Manual and it's literally all about cros_ec_get_cmd_versions π¦ β the lil' function that tells you which versions of an EC command are supported. Get supported version mask, that's the whole vibe. Periodt.
πΈ SYNOPSIS πΈ
Like, here's the whole signature, character for character, no cap:
int cros_ec_get_cmd_versions (struct cros_ec_device *ec_dev , u16 cmd );
π ARGUMENTS π
Two of them, both iconic, both essential:
ec_devβ the EC device π this is your main character right here.cmdβ the command you wanna test π the one you're putting on blast.
β RETURN β
So what do you get back?
- On success β the version mask β¨ (slay)
- On failure β a negative error number π (not the vibe, but at least it's honest)
π«Ά SEE ALSO π«Ά
The whole friend group, fr fr β they all hang out in the 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_get_sensor_count(9)cros_ec_cmd(9)cros_ec_cmd_readmem(9)cros_ec_device_registered(9)
lowkey go read them all, they're all in ./drivers/platform/chrome and they're all eating ππ₯
and that's the page!! mwah π this whole thing came from ./drivers/platform/chrome, dated October 2026 β catch you in the next manpage bestie, muah πβ¨π§π
π¦ 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