cros_ec_pkt_xfer_rpmsg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cros_ec_pkt_xfer_rpmsg(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for cros_ec_pkt_xfer_rpmsg, and no cap, it's giving "send a packet, get a reply" energy πŸŽ€


✨ NAME ✨

cros_ec_pkt_xfer_rpmsg β€” transfer a packet over rpmsg and receive the reply πŸ¦‹


🌸 SYNOPSIS 🌸

int cros_ec_pkt_xfer_rpmsg (struct cros_ec_device *ec_dev , struct
       cros_ec_command *ec_msg );

literally that's the whole vibe: two args in, an int out ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • ec_dev β€” the ChromeOS EC device πŸ’… this is the main character, the device we're talking to
  • ec_msg β€” the message to transfer πŸ“¨ like, the actual thing you're sending over

πŸ”₯ RETURN πŸ”₯

on success it hands you back the number of bytes of the reply πŸ‘‘ (slay), or a negative error code if things went sideways 😭

so like... if the number is negative, that's not a byte count, that's a sad β€” check it before you celebrate 🫢

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/platform/chrome/cros_ec_rpmsg.c ⭐
  • struct cros_ec_rpmsg_response(9)
  • struct cros_ec_rpmsg(9)
  • cros_ec_cmd_xfer_rpmsg(9)

iykyk, go read those next πŸ’œ


okay that's the whole page, mwah πŸ’‹ β€” this gem lives under ./drivers/platform/chrome, dated October 2026, and it's the cros_ec_pkt_xfer_rpmsg(9) manual page signing off. periodt πŸ§šπŸ’–

πŸ“¦ where this page comes from