STRUCT WILCO_EC_RESPONSE(9)
π struct wilco_ec_response(9) β bestie edition π
okay so this is a page from the Kernel API Manual (the struct wilco_ec_response(9) one, iykyk) and it's literally the whole vibe of a mailbox response message format. it's giving "the EC wrote back and here's the envelope" energy π
β¨ NAME β¨
struct wilco_ec_response β Mailbox response message format. that's it, that's the whole name, slay.
π¦ SYNOPSIS π¦
struct wilco_ec_response {
u8 struct_version;
u8 checksum;
u16 result;
u16 data_size;
u8 reserved[2];
u8 data[];
};
look at her. iconic struct. no cap π
πΈ Members πΈ
struct_versionβ Should beEC_MAILBOX_PROTO_VERSION. like, that's the assignment bestie, don't freestyle it πchecksumβ Sum of all bytes must be0. yes, all of them. every single byte pulling its weight so the total lands on zero β¨resultβ Result code from the EC. Non-zero indicates an error. so if this isn't zero, something went wrong and we're like πdata_sizeβ Length of the response data buffer. just telling you how much data you actually got πreservedβ Set to zero. that's it. zero. don't be quirky about it πdataβ Response data buffer. Max size isEC_MAILBOX_DATA_SIZE_EXTENDED. the actual payload, the main character of the struct π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/platform_data/wilco-ec.hstruct wilco_ec_device(9),struct wilco_ec_request(9),enum wilco_ec_msg_type(9),struct wilco_ec_message(9),wilco_ec_mailbox(9),wilco_keyboard_leds_init(9),wilco_ec_get_property(9),wilco_ec_set_property(9),wilco_ec_get_byte_property(9),wilco_ec_add_sysfs(9)
like, go read the whole friend group, they all hang out together π«Ά
π friendly reminder: thereservedbytes are zero and thechecksumsum must be zero, andstruct_versionshould beEC_MAILBOX_PROTO_VERSION. those aren't suggestions, bestie, that's the vibe check π
and that's the page!! source path is ./include/linux/platform_data, dated October 2026, and yes the footer still says struct wilco_ec_response(9) because she's consistent like that βπ
π¦ 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