STRUCT EC_RESPONSE_FLASH_INFO(9)
π struct ec_response_flash_info(9) π
okay so bestie, welcome to the Kernel API Manual page for struct ec_response_flash_info β it's giving "the receipt the EC hands you when you ask about flash" energy, and honestly? iconic. π¦
β¨ NAME β¨
struct ec_response_flash_info β the response to the flash info command. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
struct ec_response_flash_info {
uint32_t flash_size;
uint32_t write_block_size;
uint32_t erase_block_size;
uint32_t protect_block_size;
};
literally four whole uint32_t fields, no cap. look at her. π
π MEMBERS π
flash_sizeβ the usable flash size in bytes. like, how much room you actually get to play with. πwrite_block_sizeβ the write block size. here's the tea: your write offset and write size must be a multiple of this number, or it's not gonna slay. π₯erase_block_sizeβ the erase block size. same deal, different block: erase offset and erase size must both be a multiple of this. π§protect_block_sizeβ the protection block size. and yep, protect offset and protect size must be a multiple of this one too. three for three, she's consistent. π
π¦ DESCRIPTION π¦
version 0 returns these fields. that's the whole description, she's a woman of few words and honestly? respect. π
ngl bestie, "must be a multiple of this" shows up three times in this page, so maybe don't be out here passing random offsets. the struct is not gonna fix that for you. π
π SEE ALSO π
kernel file ./include/linux/platform_data/cros_ec_commands.h, plus the whole friend group right here β go say hi:
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_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_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)
mwah π this little page lives at ./include/linux/platform_data and it's stamped October 2026 β go read the other structs, ily, 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