cros_ec_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cros_ec_unregister (kernel API manual, bestie edition)

okay so real talk, this is a page from the kernel API manual β€” the cros_ec_unregister one β€” and it's short but it's important, so stay with me 🫢


✨ NAME ✨

cros_ec_unregister β€” remove a ChromeOS EC. that's it. that's the whole job. she's leaving, and we're escorting her out πŸšͺπŸ‘‘


✨ SYNOPSIS ✨

void cros_ec_unregister (struct cros_ec_device *ec_dev);

look at her. void return. no drama. no notes. πŸ’…


✨ ARGUMENTS ✨

  • ec_dev β€” the device you want to unregister. like, the specific one. the ChromeOS EC you're breaking up with. be specific, bestie πŸ’”

✨ DESCRIPTION ✨

so this is the one you call when you want to deregister a ChromeOS EC, and then β€” after that β€” clean up any private data. that's the whole vibe: deregister first, tidy up second. no cap ✨🧹


✨ RETURN ✨

the page says 0 on success, or a negative error code. and like… yes, the whole thing is declared void up in the synopsis 😭 i'm just telling you what the manual says, i don't make the rules. write it down, move on, slay. πŸ“


✨ SEE ALSO ✨

kernel file ./drivers/platform/chrome/cros_ec.c β€” go read her, she's iconic:

like a little friend group of functions 🫢 go say hi to all of them.


heads up bestie: cros_ec_register(9) is in there too β€” that's the "we're so back" to this one's "it's over". balance πŸ’–

and that's the page!! πŸŽ€ this little gem lives down in ./drivers/platform/chrome, it's dated October 2026, and it's filed under the Kernel API Manual β€” so when you're flipping through that manual and you land here, you'll know exactly what's up. bye bestie, go unregister something responsibly 🌈⭐

πŸ“¦ where this page comes from