STRUCT EC_RESPONSE_FLASH_PROTECT(9)
π NAME π
hey bestie!! welcome to the struct ec_re...lash_protect(9) page from the Kernel API Manual β sheβs the response struct for the flash protect command, and sheβs literally iconic β¨
πΈ SYNOPSIS πΈ
okay so the struct itself is this exact vibe, no cap:
struct ec_response_flash_protect {
uint32_t flags;
uint32_t valid_flags;
uint32_t writable_flags;
};
π«Ά Members π«Ά
flagsβ Current value of flash protect flags. like, the actual flag state rn πvalid_flagsβ Flags which are valid on this platform. This allows the caller to distinguish between flags which aren't set vs. flags which can't be set on this platform. that distinction is important, iykyk πwritable_flagsβ Flags which can be changed given the current protection state. so not every flag is editable in every state, periodt π₯
π SEE ALSO π
Kernel file ./include/linux/platform_data/cros_ec_commands.h β and bestie, the whole friend group is here:
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_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)
okay thatβs the whole page, bestie π this gem lives in ./include/linux/platform_data, dated October 2026, under the manual name struct ec_re...lash_protect(9) β bye slay β¨π¦
π¦ 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