STRUCT CEC_EVENT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct cec_event(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– β€” this is the page for struct cec_event, and honestly? it's giving "small struct, big responsibilities" energy πŸ‘‘


🌸 NAME 🌸

struct cec_event β€” the CEC event structure, aka the little envelope the kernel slides into your inbox when stuff happens πŸ“¬


πŸ¦‹ SYNOPSIS πŸ¦‹

struct cec_event {
    __u64 ts;
    __u32 event;
    __u32 flags;
    union {
      struct cec_event_state_change state_change;
      struct cec_event_lost_msgs lost_msgs;
      __u32 raw[16];
    };
 };

look at her. impeccable formatting. no notes. πŸ’…


πŸŽ€ Members πŸŽ€

⭐ ts

the timestamp of when the event was sent ⏰ β€” literally the receipt, "this happened at this exact moment", no cap.

⭐ event

the event itself 🎯 β€” the whole reason this struct exists fr fr.

⭐ flags

event flags 🚩 β€” the extra little details tagging along with the event.

⭐ {unnamed_union}

anonymous πŸ‘» β€” yep, that's the whole description. she has no name and she doesn't need one, main character energy tbh.

⭐ state_change

the event payload for CEC_EVENT_STATE_CHANGE 🌈 β€” when the event is that one, this is the good stuff inside.

⭐ lost_msgs

the event payload for CEC_EVENT_LOST_MSGS 😭 β€” and when the event is that one, this is what you get instead.

⭐ raw

array to pad the union 🧚 β€” __u32 raw[16], just out here holding space so the union stays the right size. iconic padding behavior, honestly.


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, assembled 🫢

πŸ’€ real talk: if you're poking at these structs and you skip the SEE ALSO entries, you're gonna have a bad time. read the whole squad, bestie, i'm begging πŸ™ˆ

and that's the page!! πŸ“ straight from ./include/uapi/linux, October 2026 edition β€” go off, you absolute kernel genius πŸ‘‘βœ¨πŸ’œ

πŸ“¦ where this page comes from