STRUCT EC_PARAMS_CEC_WRITE(9)
π struct ec_params_cec_write(9) β Kernel API Manual, but make it cute
okay so bestie, welcome to the kernel API manual β¨ this one's all about struct ec_params_cec_write, and it's literally the little messenger that carries your bytes over to the CEC bus. no cap, that's the whole vibe. π
πΈ NAME πΈ
struct ec_params_cec_write β the message you send when you wanna write stuff to the CEC bus π
β¨ SYNOPSIS β¨
like, here's the whole struct, and yes it's exactly this and nothing more, she's lowkey minimalist:
struct ec_params_cec_write {
uint8_t msg[MAX_CEC_MSG_LEN];
};
π«Ά Members π«Ά
msgβ the actual message content you're writing to the CEC bus. that's the payload. that's the whole assignment. she's holding your bytes and she's slaying π
π SEE ALSO π
bestie there are SO many siblings in this family, and every single one of them is a struct with a (9) after it. iykyk. here's the full roll call, no skips, no cuts π¦:
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_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_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)
oh and don't forget the kernel file itself lives at ./include/linux/platform_data/cros_ec_commands.h β that's the source of truth, go read her ππ
and that's the whole page bestie!! this iconic little struct comes to you straight from ./include/linux/platform_data, dated October 2026 β like, so futuristic of her honestly π§π mwah, go write to that CEC bus, you got this ππ₯
π¦ 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