STRUCT EC_RESPONSE_FLASH_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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