cec_msg_opcode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a const 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 🧚:


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