cros_ec_get_cmd_versions(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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