STRUCT EC_RESPONSE_BATTERY_STATIC_INFO(9)
π struct ec_response_battery_static_info π
okay so bestie, welcome to the Kernel API Manual, section 9 β this is the page for struct ec_response_battery_static_info, aka the glow-up where your EC hands over the static deets about the battery. Not the live juicy numbers, the permanent ones. The birth certificate, if you will. π
β¨ NAME β¨
struct ec_response_battery_static_info β Battery static info response. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
no cap, here's the whole struct, copy it exactly bestie:
struct ec_response_battery_static_info {
uint16_t design_capacity;
uint16_t design_voltage;
char manufacturer[EC_COMM_TEXT_MAX];
char model[EC_COMM_TEXT_MAX];
char serial[EC_COMM_TEXT_MAX];
char type[EC_COMM_TEXT_MAX];
uint32_t cycle_count;
};
^ that's her. main character struct energy. π
πΈ Members πΈ
lowkey the most important part, let's go field by field:
design_capacityβ Battery Design Capacity, measured inmAh. this is the factory-intended capacity, the "how much she was supposed to hold" number. πdesign_voltageβ Battery Design Voltage, measured inmV. the intended voltage, fr fr. β‘manufacturerβ Battery Manufacturer String. who made her. πmodelβ Battery Model Number String. her model number, iykyk. π·οΈserialβ Battery Serial Number String. her very own serial, unique-ish, iconic. π’typeβ Battery Type String. what kind of battery she is. πcycle_countβ Battery Cycle Count. how many cycles she's been through, and honestly? relatable. π
quick note bestie:manufacturer,model,serial, andtypeare allchararrays sizedEC_COMM_TEXT_MAX. that's the exact macro name, don't @ me, don't rename it. π«Ά
π SEE ALSO π
so many friends, so many structs. the whole group chat, basically β 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_get(9)struct ec_response_cec_port_count(9)struct ec_params_battery_static_info(9)struct ec_params_battery_dynamic_info(9)struct ec_response_battery_dynamic_info(9)struct ec_params_charger_control(9)
literally the entire extended universe. go read them all, or at least the battery-adjacent ones. π§
k that's the whole page bestie β sign-off time π«Ά this one lives in ./include/linux/platform_data, dated October 2026. slay, bye! πβ¨
π¦ 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