extcon_dev_unregister(9)
π extcon_dev_unregister β the Kernel API Manual glow-up π
okay so bestie, welcome to extcon_dev_unregister(9) from the Kernel API Manual β this is the page where we say bye-bye to an extcon device, and honestly? it's giving cleanup era β¨
β¨ NAME β¨
extcon_dev_unregister β unregister the extcon device. that's it, that's the whole vibe. we're taking it off the registry, no cap π«Ά
πΈ SYNOPSIS πΈ
void extcon_dev_unregister (struct extcon_dev *edev );
literally one function, one pointer, zero drama π
π¦ ARGUMENTS π¦
edevβ the extcon device you're unregistering. the actual one. the main character of this whole operation π
π DESCRIPTION π
okay so here's the part you actually need to remember, bestie, because it's lowkey important π
this does not callkfree(edev)β becauseedevwas not allocated by this class. so like, don't expect this function to free your memory for you, that's not its job, it's not on the clock for that π«Ά
periodt. that's the whole caution. remember it π
π₯ SEE ALSO π₯
bestie the friend group is LARGE and every single one of them is iconic in their own way, so let's do roll call πβ¨:
- Kernel file
./drivers/extcon/extcon.c struct extcon_cable(9)extcon_sync(9)extcon_get_state(9)extcon_set_state(9)extcon_set_state_sync(9)extcon_get_property(9)extcon_set_property(9)extcon_set_property_sync(9)extcon_get_property_capability(9)extcon_set_property_capability(9)extcon_get_extcon_dev(9)extcon_register_notifier(9)extcon_unregister_notifier(9)extcon_register_notifier_all(9)extcon_unregister_notifier_all(9)extcon_alloc_cables(9)extcon_alloc_muex(9)extcon_alloc_groups(9)extcon_dev_register(9)extcon_get_edev_name(9)
like, the whole squad showed up π and yes they're all (9) sections, we stay consistent π
and that's the page!! πβ¨ this lil masterpiece lives in ./drivers/extcon, dated October 2026, and it's extcon_dev_unregister(9) all the way down. mwah π go unregister responsibly bestie π¦π
π¦ 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