ENUM WILCO_EC_MSG_TYPE(9)
π enum wilco_ec_msg_type β the Kernel API Manual, bestie edition π
okay so this is enum wilco_ec_msg_type, and it's literally the thing that tells the EC which flavor of command codes you're about to speak. like, it picks the whole lane you're driving in. one enum, three vibes, zero drama. β¨
πΈ SYNOPSIS πΈ
enum wilco_ec_msg_type {
WILCO_EC_MSG_LEGACY ,
WILCO_EC_MSG_PROPERTY ,
WILCO_EC_MSG_TELEMETRY
};
that's the whole shape of it β three constants, in that order, and yes the trailing comma after WILCO_EC_MSG_TELEMETRY is just there living its life. π
π Constants (the main characters) π
WILCO_EC_MSG_LEGACYβ the og messages. these are the legacy EC messages for standard EC behavior, aka the classic stuff the EC has always done. vintage, but functional. πWILCO_EC_MSG_PROPERTYβ for when you're doingGet/Set/Syncon an EC controlled NVRAM property. yes bestie, NVRAM properties, we love a persistent vibe check. π¦WILCO_EC_MSG_TELEMETRYβ this one's the gossip girl of the enum: it requests telemetry data from the EC. it's giving "spill the data, i'm listening." π₯
π SEE ALSO π
the kernel file to go look at is ./include/linux/platform_data/wilco-ec.h (that's where all the lore lives). and then, in no particular order, the whole friend group:
struct wilco_ec_device(9)struct wilco_ec_request(9)struct wilco_ec_response(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 all of them, they're iconic, i promise. π«Ά
ngl bestie, this page is short but that's the point β pick your message type, send your message, slay. no cap. π
okay so that's a wrap! this one lives under ./include/linux/platform_data, and it's dated October 2026 β so yes, it's a little time traveler from the future, we stan a forward-thinking manpage. catch you in the next one, mwah! πΈππβππ
π¦ 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