STRUCT WILCO_EC_REQUEST(9)
๐ struct wilco_ec_request(9)
okay so this is a page from the Kernel API Manual โ yes bestie, the kernel has lore too โ and it's all about struct wilco_ec_request, aka the Mailbox request message format. it's giving "how to slide into the EC's DMs, formally" โจ
๐ธ NAME ๐ธ
struct wilco_ec_request โ the Mailbox request message format. that's it, that's the whole vibe. ๐จ
๐ SYNOPSIS ๐
struct wilco_ec_request {
u8 struct_version;
u8 checksum;
u16 mailbox_id;
u8 mailbox_version;
u8 reserved;
u16 data_size;
};
look at her. six members. flawless layout. no notes. ๐
๐ฆ Members ๐ฆ
struct_versionโ should beEC_MAILBOX_PROTO_VERSION. like, that's the assignment, don't freelance it. ๐checksumโ the sum of all bytes has to be0. all of them. every single one. yes this is a whole thing (iykyk). ๐งฎmailbox_idโ the mailbox identifier, and it specifies the command set. basically the "which group chat am i in" field. ๐ฌmailbox_versionโ the mailbox interface version,EC_MAILBOX_VERSION. keep it accurate bestie. ๐ท๏ธreservedโ set to zero. that's it. zero. don't be creative. ๐ซdata_sizeโ the length of the following data. how much data is coming after this. that's the whole job. ๐
๐ SEE ALSO ๐
Kernel file ./include/linux/platform_data/wilco-ec.h, plus the whole friend group:
struct wilco_ec_device(9)struct wilco_ec_response(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)
go read them. they're all linked in the group chat. ๐๐
๐ง sign-off ๐ง
this lil page lives at ./include/linux/platform_data, and it's dated October 2026 โ yeah, the future. main character timeline fr. anyways, that's the page, struct wilco_ec_request(9), you ate, slay, 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