STRUCT CEC_EVENT_STATE_CHANGE(9)
π STRUCT CEC_EVENT_STATE_CHANGE(9) π
okay bestie, welcome to the Kernel API Manual β this is the page about struct cec_event_state_change, and it's literally the little glow-up notification your CEC adapter sends when its state changes. no cap, it's tiny but it carries.
β¨ NAME β¨
struct cec_event_state_change β used when the CEC adapter changes state. that's it, that's the whole vibe check. π¦
πΈ SYNOPSIS πΈ
struct cec_event_state_change {
__u16 phys_addr;
__u16 log_addr_mask;
__u16 have_conn_info;
};
look at her. three little __u16 fields, absolutely iconic. π
π Members π
phys_addrβ the current physical address. the main character of the struct, honestly.log_addr_maskβ the current logical address mask. it's giving "who am I in the group chat" energy. πhave_conn_infoβ if non-zero, then HDMI connector information is available.
π¨ okay so this is the important caveat, do not skip: this field is only valid ifCEC_CAP_CONNECTOR_INFOis set. if that capability is set andhave_conn_infois zero, then that indicates that the HDMI connector device is not instantiated, either because the HDMI driver is still configuring the device or because the HDMI device was unbound. so likeβ¦ zero doesn't mean "nope forever", it means "not yet / not rn". π
π SEE ALSO π
Kernel file ./include/uapi/linux/cec.h β and yes, the whole friend group shows up too:
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_lost_msgs(9)struct cec_event(9)
π«Ά and that's the page!! source line for the credits: ./include/uapi/linux, dated October 2026, filed under struct cec_...state_change(9). 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