cros_ec_cmd_xfer_rpmsg(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… cros_ec_cmd_xfer_rpmsg(9) โ€” from the Kernel API Manual, bestie ๐ŸŽ€

Okay so real talk, this page is short and honestly a little bit of a jumpscare, but we're gonna get through it together. Strap in โœจ


๐ŸŒธ NAME ๐ŸŒธ

cros_ec_cmd_xfer_rpmsg โ€” the function that's supposed to transfer a message over rpmsg and receive the reply ๐Ÿ’Œ (emphasis on "supposed to", keep reading, iykyk)


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

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

So it returns an int, it takes two pointers, and that's the whole vibe check ๐Ÿ’€


๐Ÿ’– ARGUMENTS ๐Ÿ’–

  • ec_dev โ€” the ChromeOS EC device ๐ŸŽฎ like, the EC in question, the main character of this story
  • ec_msg โ€” the message you're trying to transfer ๐Ÿ“จ the one that's not going anywhere, bestie

๐Ÿ™ˆ DESCRIPTION ๐Ÿ™ˆ

Okay so here's the tea โ˜• and it's not great tea:

This one is only used for old EC proto version, and it is not supported for this driver.

Not me showing up to a function that literally says "not supported" ๐Ÿ˜ญ it's giving decorative. It's giving "we keep you around for legacy reasons only." Lowkey iconic of it to just exist and do nothing, honestly. Periodt.


๐Ÿ’€ RETURN ๐Ÿ’€

-EINVAL

That's it. That's the whole return section. One value. Negative. A little bit of a read, ngl ๐ŸŒธ


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

If you're nosy (respectfully ๐Ÿซถ) here's where to go next:

  • Kernel file ./drivers/platform/chrome/cros_ec_rpmsg.c
  • struct cros_ec_rpmsg_response(9)
  • struct cros_ec_rpmsg(9)
  • cros_ec_pkt_xfer_rpmsg(9) โ€” the sibling that actually does stuff ๐Ÿ‘‘

โญ Quick reminder bestie: it's only for old EC proto version and it's not supported for this driver. Don't build your whole plan around it, mmkay? ๐Ÿ’œ

Alright that's the page! This little gem lives over in ./drivers/platform/chrome, and it's dated October 2026 ๐Ÿ“ โ€” signed, sealed, delivered, and formatted by your fave kernel-fluent bestie ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from