STRUCT EC_RESPONSE_CEC_GET(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct ec_response_cec_get(9) β€” from the Kernel API Manual, bestie

okay so picture this: you're deep in the kernel API manual (iconic behaviour, honestly) and you hit struct ec_response_cec_get, which is the CEC parameters get response. That's the whole vibe. It's the little reply struct the EC sends back when you ask it about CEC stuff, and she is tiny but she is doing her job. πŸŽ€


✨ SYNOPSIS ✨

struct ec_response_cec_get {
    uint8_t val;
 };

yes bestie that's it, one single field, minimalism ate πŸ’…


🌸 Members 🌸

  • val β€” okay so this one field is a little shapeshifter and which personality she shows depends entirely on what cmd was:
    • if cmd was CEC_CMD_ENABLE, then val is 0 when CEC is disabled, or 1 when CEC functionality is enabled πŸ”₯
    • if cmd was CEC_CMD_LOGICAL_ADDRESS, then val encodes the configured logical address β€” a number between 0 and 15 β€” or 0xff if it's unregistered πŸ™ˆ
ngl the double-duty thing is giving main character energy, so keep track of which cmd you sent or you'll misread the whole vibe check πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

like, go read these too, they're all in the same friend group πŸ’–

  • Kernel file ./include/linux/platform_data/cros_ec_commands.h
  • struct ec_lpc_host_args(9)
  • struct ec_host_request(9)
  • struct ec_host_response(9)
  • struct ec_response_proto_version(9)
  • struct ec_params_hello(9)
  • struct ec_response_hello(9)
  • struct ec_response_get_version(9)
  • struct ec_params_read_test(9)
  • struct ec_response_read_test(9)
  • struct ec_response_get_chip_info(9)
  • struct ec_response_board_version(9)
  • struct ec_params_read_memmap(9)
  • struct ec_params_get_cmd_versions(9)
  • struct ec_params_get_cmd_versions_v1(9)
  • struct ec_response_get_cmd_versions(9)
  • struct ec_response_get_comms_status(9)
  • struct ec_response_get_protocol_info(9)
  • struct ec_response_flash_info(9)
  • struct ec_response_flash_info_1(9)
  • struct ec_params_flash_read(9)
  • struct ec_params_flash_write(9)
  • struct ec_params_flash_erase(9)
  • struct ec_params_flash_erase_v1(9)
  • struct ec_params_flash_protect(9)
  • struct ec_response_flash_protect(9)
  • struct ec_params_flash_region_info(9)
  • struct ec_params_flash_select(9)
  • struct ec_params_cec_write(9)
  • struct ec_params_cec_write_v1(9)
  • struct ec_params_cec_read(9)
  • struct ec_response_cec_read(9)
  • struct ec_params_cec_set(9)
  • struct ec_params_cec_get(9)
  • struct ec_response_cec_port_count(9)
  • struct ec_params_battery_static_info(9)
  • struct ec_response_battery_static_info(9)
  • struct ec_params_battery_dynamic_info(9)
  • struct ec_response_battery_dynamic_info(9)
  • struct ec_params_charger_control(9)

and that's the page!! 🫢 she lives over in ./include/linux/platform_data, and this little writeup is dated October 2026 β€” so like, timestamped, slay, periodt ⭐ go read the whole header file, iykyk 🌈

πŸ“¦ where this page comes from