cros_ec_get...version_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cros_ec_get...version_mask(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ this one's a lil page about asking your ChromeOS Embedded Controller "hey girl, what version of this command do you speak?" β€” and it's lowkey iconic πŸŽ€


🌸 NAME 🌸

cros_ec_get_host_command_version_mask β€” no cap, that's the whole name section, the original didn't give us a one-liner so we're not gonna invent one πŸ™ˆ


✨ SYNOPSIS ✨

int cros_ec_get_host_command_version_mask (struct cros_ec_device *ec_dev
, u16 cmd , u32 *mask );

that's the whole vibe right there 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ec_dev β€” the EC device you're calling, like dialing up your embedded controller bestie πŸ’…
  • cmd β€” the command you wanna get the version of. yes, that command 🎯
  • mask β€” this is where the answer lands, but only when the function returns 0. it's the output slot, bestie, it stays empty until things go right 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

Get the version mask of a given command. that's it, that's the whole thing, and honestly? slay πŸ’–

return 0 on success, error code otherwise 😭 (iykyk, always check your return values)

LOCKING: ⚠️ the caller has ec_dev->lock mutex or the caller knows there is no other command in progress. fr fr, don't skip this β€” this is the vibe check for your locking discipline and it is not optional πŸ’€

🧚 SEE ALSO 🧚

the whole friend group, gathered for you 🫢:


and that's the page!! πŸ’œ this lil gem lives in ./drivers/platform/chrome, stamped October 2026, and it's part of the Kernel API Manual β€” go read the source, it's giving main character energy ⭐πŸ”₯

πŸ“¦ where this page comes from