STRUCT CROS_EC_COMMAND(9)
π struct cros_ec_command(9) π
okay so bestie, welcome to the Kernel API Manual page for struct cros_ec_command β yes that's the manual name, it's giving "I live in the kernel docs now" and honestly? iconic. this one's all about the info that describes a ChromeOS EC command. let's get into it π¦
β¨ NAME β¨
struct cros_ec_command β literally just the info about a ChromeOS EC command. that's the whole vibe. no cap. π
πΈ SYNOPSIS πΈ
struct cros_ec_command {
uint32_t version;
uint32_t command;
uint32_t outsize;
uint32_t insize;
uint32_t result;
uint8_t data[];
};
look at her. five uint32_ts and one gorgeous flexible uint8_t data[] array. main character struct fr fr π
π Members π
versionβ the command version number (often0, so don't stress it bestie π«Ά).commandβ the actual command to send, and it's anEC_CMD_...one, iykyk.outsizeβ the outgoing length, in bytes. how much you're yeeting out the door.insizeβ the max number of bytes to accept from the EC. like a little bouncer at the club, strictly capping what comes back in πresultβ the EC's response to the command. and yes, this is separate from a communication failure β so a bad result and a broken chat are two different problems, keep that straight πdataβ where the incoming data from the EC goes, and where the outgoing data to the EC comes from. both directions, one spot, she's doing double duty and slaying it β¨
π¦ SEE ALSO π¦
- kernel file
./include/linux/platform_data/cros_ec_proto.hstructcros_ec_device(9) - struct
cros_ec_platform(9) - struct
cros_ec_dev(9) cros_ec_get_time_ns(9)
go read those, they're all part of the same friend group bestie π
anyway that's the whole page, mwah π β this came from ./include/linux/platform_data, dated October 2026, and it's struct cros_ec_command(9) forever and always. periodt. π
π¦ 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