STRUCT RESPONSE_INFO(9)
π struct response_info(9) π
okay so bestie, welcome to the Kernel API Manual, section 9 β yes, the big-league kernel section, we love to see it. this little cutie is called struct response_info and it is literally the vibe translator for EC responses π¦
β¨ NAME β¨
struct response_info β encapsulates EC response related information so it can be passed between cros_ec_uart_pkt_xfer() and the cros_ec_uart_rx_bytes() callback. it's giving middleware icon, honestly π
β¨ SYNOPSIS β¨
struct response_info {
void *data;
size_t max_size;
size_t size;
size_t exp_len;
int status;
wait_queue_head_t wait_queue;
};
look at her. six members. no cap, she's perfect π
πΈ Members πΈ
dataβ copy the data you received from the EC into here, bestie. that's her whole job. drop it in πmax_sizeβ the max size allocated for thedatabuffer. if the received data exceeds this value, we log an error. so likeβ¦ respect the limit fr fr πsizeβ actual size of data received from EC. this one is also used to accumulate the byte count when the response is received in dma chunks β yes she multitasks, main character energy βexp_lenβ expected bytes of response from EC, including the header. don't forget the header, iykyk π§statusβ re-init to0before sending a cmd. updated to1when a response is successfully received, or to an error number on failure. she's a clean slate every time, we stan πwait_queueβ wait queue for the EC response, where thecros_ecsends the request to EC and waits. lowkey the most dramatic member β she just sits there, waiting ππ
π₯ SEE ALSO π₯
- Kernel file
./drivers/platform/chrome/cros_ec_uart.candstruct cros_ec_uart(9)β go read the source, bestie, it's good for you π«Ά
quick vibe check: nothing here is deprecated or dangerous, she's just a struct doing her best β¨
and that's the whole page π brought to you by the source in ./drivers/platform/chrome, dated October 2026, and yes β struct response_info(9), periodt ππ
π¦ 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