STRUCT CROS_EC_CEC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 of EC_CMD_CEC_WRITE_MSG πŸ”₯ literally the ceiling of write-command versions, iykyk
  • num_ports β€” the number of CEC ports 🌈
  • ports β€” the array of ports πŸŽ€ (an array of struct cros_ec_cec_port *, sized EC_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