cec_msg_init(9)
π cec_msg_init(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual β¨ this one's about cec_msg_init and it's honestly the softest little starter function ever π
πΈ NAME πΈ
cec_msg_init β initialize the message structure. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
void cec_msg_init (struct cec_msg *msg , __u8 initiator , __u8
destination );
π«Ά ARGUMENTS π«Ά
msgβ the message structure, aka the glow-up target πinitiatorβ the logical address of the initiator, the one who starts the convo π£οΈdestinationβ the logical address of the destination π and btw0xfmeans broadcast, so everybody hears it, no cap π’
π DESCRIPTION π
so basically: the whole structure is zeroed out (clean slate, fresh face, main character energy β¨), then the len field gets set to 1 β which is literally a poll message, iykyk π β and finally the initiator and destination get filled in π
that's the vibe check, and she passes every time π―
π¦ SEE ALSO π¦
Kernel file ./include/uapi/linux/cec.h, plus the whole friend group:
struct cec_msg(9)cec_msg_initiator(9)cec_msg_destination(9)cec_msg_opcode(9)cec_msg_is_broadcast(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)struct cec_event(9)
and that's the whole page, bestie π this cutie lives in ./include/uapi/linux, dated October 2026, and it's been serving Kernel API Manual realness since day one π§ββοΈβ go forth and init those messages, 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