STRUCT CROS_EC_XFER_WORK_PARAMS(9)
π struct cros_ec_xfer_work_params(9) π
okay so this is a page from the Kernel API Manual, and honestly? it's giving "small but mighty" β¨ β we're talking about the params struct for our high priority workers, no cap. let's get into it π«Ά
πΈ NAME πΈ
struct cros_ec_xfer_work_params β literally the params for our high priority workers π
β¨ SYNOPSIS β¨
struct cros_ec_xfer_work_params {
struct kthread_work work;
cros_ec_xfer_fn_t fn;
struct cros_ec_device *ec_dev;
struct cros_ec_command *ec_msg;
int ret;
};
like, that's the whole vibe right there π copy it exactly bestie, don't be creative with it
π¦ Members π¦
so every field is a little main character in its own right, let's meet them π
workβ thework_structyou need to queue work. that's it, that's her job, and she does it slayfully πfnβ the function to use to transfer. yes, the function π₯ec_devβ the ChromeOS EC device π the whole reason we're hereec_msgβ the message to transfer π¨ she's carrying the message, literallyretβ the return value of the function. the receipts, the verdict, the final word π
β SEE ALSO β
iykyk, go read the Kernel file ./drivers/platform/chrome/cros_ec_spi.c and also these iconic siblings:
struct cros_ec_spi(9)receive_n_bytes(9)cros_ec_spi_receive_packet(9)cros_ec_spi_receive_response(9)do_cros_ec_pkt_xfer_spi(9)do_cros_ec_cmd_xfer_spi(9)
bestie heads up π«Ά this page lives under ./drivers/platform/chrome β that's the neighborhood, that's the address, memorize it π§
and that's the whole page, no notes π huge thanks to the ./drivers/platform/chrome crew, this one's dated October 2026, and yes the manual name is struct cros..._work_params(9) β she's long, she's mysterious, we love her ππΈ 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