STRUCT EC_EVENT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct ec_event(9) 🌸

okay so real talk, welcome to the Kernel API Manual, section 9, bestie β€” we're doing struct ec_event today and honestly? it ate. this is the extended event that gets handed back to you by the EC, and yes that's the whole vibe πŸ’…


✨ NAME ✨

struct ec_event β€” the extended event that the EC returns to you 🫢 that's it, that's the whole name section, slay.


πŸŽ€ SYNOPSIS πŸŽ€

here's the shape of it, copy it exactly, no cap:

struct ec_event {
    u16 size;
    u16 type;
    u16 event[];
};

look at that little flexible array member living its main character life at the end 😭 iconic behavior honestly.


πŸ¦‹ Members πŸ¦‹

okay so let's meet the members, they're all so important:

  • size β€” the number of 16bit words in the structure after the size word, okay? so don't count the size word itself, count everything after it. lowkey the most important detail here, don't fumble it πŸ’–
  • type β€” the extended event type. and bestie... it's meaningless for us πŸ™ˆ like literally we don't use it, it's just kinda there being decorative. still gotta have it in the struct though πŸ’…
  • event β€” the actual event data words, the good stuff ✨ and heads up: the max count is EC_ACPI_MAX_EVENT_WORDS, so don't go over that, fr fr πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, bestie, they're all connected, iykyk:


and that's the whole page, you ate that honestly πŸ“ this came from ./drivers/platform/chrome/wilc... (the path got a little truncated, it's giving mysterious ✨) and it's dated October 2026, and the page is struct ec_event(9) β€” okay bye bestie, go write some kernel code πŸ’œπŸ§š

πŸ“¦ where this page comes from