cros_ec_pd_command(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cros_ec_pd_command(9) ✨

okay so bestie, this is a page from the Kernel API Manual and it's lowkey one of those tiny-but-mighty functions you'll be glad you bookmarked. it's cros_ec_pd_command β€” the girl whose whole job is sending a command to the EC. that's it, that's the vibe. πŸ’…


πŸŽ€ NAME πŸŽ€

cros_ec_pd_command β€” send a command to the EC.

like, literally. she delivers your message to the embedded controller. main character energy, zero drama. πŸ‘‘


🌸 SYNOPSIS 🌸

int cros_ec_pd_command (struct cros_ec_extcon_info *info , unsigned int
command , unsigned int version , void *outdata , unsigned int outsize ,
void *indata , unsigned int insize );

that signature is kinda long ngl, but she's worth it 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • info β€” pointer to struct cros_ec_extcon_info. this is the ✨context✨ she's working with, so don't be out here passing nonsense.
  • command β€” the EC command. the actual thing you're asking for, iykyk.
  • version β€” the EC command version. yes, she's versioned, she's professional.
  • outdata β€” EC command output data. this is where the goodies land πŸ’–
  • outsize β€” size of outdata. tell her how big the landing pad is, bestie.
  • indata β€” EC command input data. what you're feeding her πŸ“
  • insize β€” size of indata. same deal, but for the input side.
no cap: outdata/outsize and indata/insize are a matched set β€” one without the other is giving chaos. πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸŽ‰
  • <0 on failure 😭

that's it. clean, simple, iconic. periodt.


🌈 SEE ALSO 🌈

go stan the whole friend group, fr fr πŸ’œ


and that's the whole page bestie!! 🧚 this little love letter lives in ./drivers/extcon and it's dated October 2026, so like… future-era documentation. you're so welcome. mwah πŸ’‹β­

πŸ“¦ where this page comes from