STRUCT EC_PARAMS_FLASH_WRITE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ec_params_flash_write(9) β€” Kernel API Manual ✨

Okay bestie, buckle up, because we're deep in the Kernel API Manual today and this one is literally a two-field struct. Peak "small but mighty" energy. πŸŽ€


🌸 NAME 🌸

struct ec_params_flash_write β€” the parameters for the flash write command. That's it, that's the whole vibe. πŸ¦‹


⭐ SYNOPSIS ⭐

struct ec_params_flash_write {
    uint32_t offset;
    uint32_t size;
 };

Look at her. Two uint32_ts. Immaculate. No cap. πŸ’–


🫢 Members 🫢

✨ offset

Byte offset to write. As in, where in the flash we're dropping this. Your starting coordinate, your little address home base. πŸ“

✨ size

Size to write in bytes. How much we're putting down. Know your numbers before you commit, bestie. πŸ“


πŸ‘‘ SEE ALSO πŸ‘‘

So there's a whole friend group here, and honestly they all live in the kernel file ./include/linux/platform_data/cros_ec_commands.h β€” go say hi to the whole squad:

  • 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_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)

Like, forty entries. She said "I have friends, actually." πŸ”₯


ngl the flash read / erase / protect / select cluster right there in the middle is giving main character energy. iykyk. πŸ’€

Okay that's the whole page, bestie β€” go forth and write some flash. πŸ’œ This iconic little doc came out of ./include/linux/platform_data and is dated October 2026, so yeah, she's got a timestamp and she's proud of it. 🧚⭐

πŸ“¦ where this page comes from