STRUCT EC_RESPONSE_CEC_GET(9)
π 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 whatcmdwas:- if
cmdwasCEC_CMD_ENABLE, thenvalis0when CEC is disabled, or1when CEC functionality is enabled π₯ - if
cmdwasCEC_CMD_LOGICAL_ADDRESS, thenvalencodes the configured logical address β a number between0and15β or0xffif it's unregistered π
- if
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
- 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