cros_ec_unregister(9)
π 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:
cros_ec_irq_handler(9)cros_ec_handle_event(9)cros_ec_irq_thread(9)cros_ec_register(9)cros_ec_suspend_prepare(9)cros_ec_suspend_late(9)cros_ec_suspend(9)cros_ec_resume_complete(9)cros_ec_resume_early(9)cros_ec_resume(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms