prepare_cros_ec_rx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… prepare_cros_ec_rx(9) β€” Kernel API Manual πŸ’…

okay so we're in the Kernel API Manual and this page is all about prepare_cros_ec_rx(9). Group-chat intro over, let's get into it. ✨

🌸 NAME 🌸

prepare_cros_ec_rx β€” check & prepare receive buffer. That's the name, no cap. πŸ’–

✨ SYNOPSIS ✨

int prepare_cros_ec_rx (struct cros_ec_device *ec_dev , const struct
cros_ish_in_msg *in_msg , struct cros_ec_command *msg );

πŸŽ€ ARGUMENTS πŸŽ€

  • ec_dev β€” the CrOS EC MFD device. That's the device in question, bestie. 🫢
  • in_msg β€” incoming message buffer. It's literally the message coming in. πŸ“₯
  • msg β€” the cros_ec command used to send & receive data. It's the command vibe for the send/receive situation. πŸ”

πŸ’« RETURN πŸ’«

  • 0 for success. Slay. βœ…
  • negative error code for failure. Not slay, but at least it's honest. 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

It checks the received buffer, then converts it to cros_ec_command format. That's the glow-up: received buffer in, cros_ec_command format out. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/platform/chrome/cros_ec_ishtp.c

🫢 that’s the tea: source ./drivers/platform/chrome, dated October 2026, page prepare_cros_ec_rx(9) β€” bye bestie! πŸ’–

πŸ“¦ where this page comes from