STRUCT CEC_EVENT(9)
β¨ 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 π«Ά
- Kernel file
./include/uapi/linux/cec.h struct cec_msg(9)cec_msg_initiator(9)cec_msg_destination(9)cec_msg_opcode(9)cec_msg_is_broadcast(9)cec_msg_init(9)cec_msg_set_reply_to(9)cec_msg_recv_is_tx_result(9)cec_msg_recv_is_rx_result(9)struct cec_caps(9)struct cec_log_addrs(9)struct cec_drm_connector_info(9)struct cec_connector_info(9)struct cec_event_state_change(9)struct cec_event_lost_msgs(9)
π 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
- 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