cec_msg_set_reply_to(9)
π cec_msg_set_reply_to(9) β a Kernel API Manual moment
okay bestie, so we're in the Kernel API Manual today and the star of the show is cec_msg_set_reply_to β literally the glow-up function for reply messages β¨
πΈ NAME πΈ
cec_msg_set_reply_to β fill in destination/initiator in a reply message. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
void cec_msg_set_reply_to (struct cec_msg *msg , struct cec_msg *orig );
it returns void, so no receipts, no return value, it just does the thing π
π ARGUMENTS π
msgβ the message structure for the reply. this is the one getting its makeover πorigβ the original message structure. the one we're taking notes from, bestie π
π§ DESCRIPTION π§
so here's what's happening, and it's giving very much "swap era" π
Set the msg destination to the orig initiator, and the msg initiator to the orig destination. like, they literally trade places, no cap.
π«Ά note note note:msgandorigmay be the same pointer, in which case the change is done in place. so it's not weird, it's just efficient. main character energy fr fr.
It also zeroes the reply, timeout and flags fields. poof, gone, reset, fresh start πβ¨
π₯ SEE ALSO π₯
- Kernel file
./include/uapi/linux/cec.h, plus these icons: 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_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)
like, the whole friend group honestly π
π and that's the page! brought to you by./include/uapi/linux, dated October 2026, and yescec_msg_set_reply_to(9)is still the title of the whole thing. mwah, study hard, iykyk ππβ
π¦ 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