cros_ec_suspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cros_ec_suspend(9) ✨

okay so bestie, this one's a kernel API manual page (a manpage, iykyk) for cros_ec_suspend β€” we're in the 9 section, the kernel API one 🫢. Let's get into it.


πŸ¦‹ NAME πŸ¦‹

cros_ec_suspend β€” Handle a suspend operation for the ChromeOS EC device.

Literally what it says on the tin: it's the suspend handler for the ChromeOS EC (embedded controller) device, and it's doing the absolute most to make suspend go smoothly πŸ’…


🌸 SYNOPSIS 🌸

int cros_ec_suspend (struct cros_ec_device *ec_dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • ec_dev β€” Device to suspend. That's the struct cros_ec_device * from the synopsis, and yes she is the main character here πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

This can be called by drivers to handle a suspend event. So if you're a driver and a suspend event shows up, this is the function you call to deal with it. No cap.

⭐ RETURN ⭐

0 always. That's right, bestie β€” always 0. Consistent queen 🌈

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/platform/chrome/cros_ec.c and her whole friend group:

fr fr go read the whole set, they're all vibing in ./drivers/platform/chrome together 🧚

πŸ’œ okay that's the page!! source/version says ./drivers/platform/chrome, dated October 2026 β€” so future-coded of it πŸ’€. mwah, bye bestie, go suspend something iconic βœ¨πŸ¦‹πŸ“

πŸ“¦ where this page comes from