STRUCT CEC_CAPS(9)
π NAME
struct cec_caps β the CEC capabilities structure, bestie. It's giving "here's what this device can actually do." β¨
β¨ SYNOPSIS
struct cec_caps {
char driver[32];
char name[32];
__u32 available_log_addrs;
__u32 capabilities;
__u32 version;
};
π Members
Okay so let's go through the members one by one, no skips, fr fr π
driverβ the name of the CEC device driver. That's your driver's whole identity, periodt.nameβ the name of the CEC device. Heads up though:driver+namemust be unique β together they're the one-of-a-kind combo, so don't be out here duplicating, iykyk π«Άavailable_log_addrsβ the number of available logical addresses.capabilitiesβ the capabilities of the CEC adapter. Literally the whole vibe check of what it can do πversionβ the version of the CEC adapter framework.
Quick little note bestie:available_log_addrs,capabilitiesandversionare all__u32, anddriverandnamearechar[32]each β the exact types matter, don't come for me πΈ
π SEE ALSO
Peep the kernel file ./include/uapi/linux/cec.h, plus all these iconic siblings:
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_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 β sourced from ./include/uapi/linux, stamped October 2026, living in the Kernel API Manual. Go forth and cap those CECs π¦π
π¦ 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