STRUCT EC_PARAMS_FLASH_ERASE_V1(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ec_params_flash_erase_v1 β€” NAME

okay so bestie, gather round: struct ec_params_flash_erase_v1 is the parameters for the flash erase command, v1 πŸ’– that's it, that's the whole name, and honestly? iconic.

This page lives in the Kernel API Manual, so you already know it's about kernel-level stuff, no cap πŸŽ€


✨ SYNOPSIS ✨

here's the whole shape of it, verbatim, don't touch a single character or it gets mad at you:

struct ec_params_flash_erase_v1 {
    uint8_t cmd;
    uint8_t reserved;
    uint16_t flag;
    struct ec_params_flash_erase params;
 };

like… four fields, extremely demure, very mindful 🌸


πŸ¦‹ Members

breaking it down field by field, iykyk:

  • cmd β€” one of ec_flash_erase_cmd πŸ‘‘ pick your fighter (from that enum, obviously).
  • reserved β€” the pad byte bestie. currently always contains 0. it's giving "just standing here, being zero" πŸ’€
  • flag β€” no flags defined yet, so set it to 0. that's the whole lore fr fr πŸ™ˆ
  • params β€” same as v0 parameters, no glow-up here, it's the exact same struct ec_params_flash_erase. reusing the fit, we love a sustainable queen πŸ“

πŸ”₯ SEE ALSO πŸ”₯

go off, read the whole family, they're all in the 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_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)

like, a whole friend group πŸ’œ


lowkey the flag field is a placeholder waiting for its main character era β€” until then, 0. periodt. πŸ’…

sign-off time bestie 🫢 this page comes from ./include/linux/platform_data and it's dated October 2026, and the manual tag on this whole thing is struct ec_p...ash_erase_v1(9) β€” yes the title got cut off at the column width, it's still her, don't body-shame the manpage 😭🌷

πŸ“¦ where this page comes from