STRUCT WILCO_EC_RESPONSE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ 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 be EC_MAILBOX_PROTO_VERSION. like, that's the assignment bestie, don't freestyle it πŸ’–
  • checksum β€” Sum of all bytes must be 0. 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 is EC_MAILBOX_DATA_SIZE_EXTENDED. the actual payload, the main character of the struct πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

like, go read the whole friend group, they all hang out together 🫢


🌈 friendly reminder: the reserved bytes are zero and the checksum sum must be zero, and struct_version should be EC_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