STRUCT CROS_EC_CEC(9)
π¦ struct cros_ec_cec(9) π¦
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, and yes it's giving "official documentation but make it cute" β¨ This page is literally all about struct cros_ec_cec, aka the driver data for EC CEC. Let's get into it π
πΈ NAME πΈ
struct cros_ec_cec β the driver data for EC CEC, no cap π«Ά
β SYNOPSIS β
like, here's the whole shape of it, character for character:
struct cros_ec_cec {
struct cros_ec_device *cros_ec;
struct notifier_block notifier;
int write_cmd_version;
int num_ports;
struct cros_ec_cec_port *ports[EC_CEC_MAX_PORTS];
};
π Members π
okay so, member by member, here's the tea π
cros_ecβ a pointer to the EC device. main character energy, honestly πnotifierβ the notifier info, aka the whole reason this struct can respond to EC events π«write_cmd_versionβ the highest supported version ofEC_CMD_CEC_WRITE_MSGπ₯ literally the ceiling of write-command versions, iykyknum_portsβ the number of CEC ports πportsβ the array of ports π (an array ofstruct cros_ec_cec_port *, sizedEC_CEC_MAX_PORTS, just so we're clear π )
π SEE ALSO π
- the kernel file
./drivers/media/cec/platform/cros-ec/cros-ec-cec.cβ go read it, bestie π struct cros_ec_cec_port(9)π¦
ngl, everything above is the full vibe check β no details were harmed, skipped, or summarised in the making of this page π
and that's a wrap, bestie π this has been struct cros_ec_cec(9) from the Kernel API Manual, dated October 2026, sourced from ./drivers/media/cec/platform/c... β slay, go touch some CEC ports, periodt πβ¨
π¦ 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