cec_msg_opcode(9)
π cec_msg_opcode(9) β like, the Kernel API Manual era π
okay bestie, welcome to cec_msg_opcode β it's a kernel API page, it lives in the Kernel API Manual, and it's about to tell you which opcode a CEC message is carrying. tiny function, big main character energy β¨
πΈ NAME πΈ
cec_msg_opcode β return the opcode of the message, -1 for poll π«Ά
yep, that's the whole vibe. you ask it what opcode the message has, and if this thing is a poll, it hits you with a -1. no cap. π
β¨ SYNOPSIS β¨
int cec_msg_opcode (const struct cec_msg *msg );
literally that's it. one function, one argument, int coming back at you. iconic.
π¦ ARGUMENTS π¦
msgβ the message structure. that's the one you're passing in, and yes it's aconst struct cec_msg *, so this function is not about to go messing with your data. respectful king behavior ππ
π SEE ALSO π
like, go read these too, they're all part of the same lil friend group π§:
- Kernel file
./include/uapi/linux/cec.hstruct cec_msg(9) cec_msg_initiator(9)cec_msg_destination(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)struct cec_event(9)
lowkey a whole reading list, but honestly? slay. go be obsessed with CEC structs, iykyk π
and that's the page, bestie!! π source slash version is ./include/uapi/linux, dated October 2026 β periodt, see you in the next manpage πππ¦π₯β
π¦ 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