devm_extcon_dev_register(9)
π¦ NAME π¦
okay so this is devm_extcon_dev_register β bestie, it's literally the Resource-managed extcon_dev_register() π
and yes we're in the Kernel API Manual, buckle up π
β¨ SYNOPSIS β¨
int devm_extcon_dev_register (struct device *dev , struct extcon_dev
*edev );
like, that's the whole signature, no cap πΈ
π«Ά ARGUMENTS π«Ά
devβ the device that owns the extcon device being created π it's giving main character energy, it's the parentedevβ the extcon device that's getting registered, the actual star of the show β
π DESCRIPTION π
so the whole vibe of this function is: once you register with it, that extcon device gets automatically unregistered on driver detach β¨ like it cleans up after itself, obsessed π§Ήπ
internally? it just calls extcon_dev_register β fr fr that's the real one doing the work. so if you want more info, go refer to that function, iykyk π
hmm okay important one π β if the extcon device was registered with this function and you still need to unregister it separately, you should use devm_extcon_dev_unregister. don't just yolo it, bestie π
and the return? Returns 0 if success, or a negative error number if failure π so like, check your return values, please, for me π«Ά
π SEE ALSO π
- Kernel file
./drivers/extcon/devres.cπ (yes the whole file, go read it) devm_extcon_dev_allocate(9)devm_extcon_dev_free(9)devm_extcon_dev_unregister(9)devm_extcon_register_notifier(9)devm_extcon_unregister_notifier(9)devm_extcon_register_notifier_all(9)devm_extcon_unregister_notifier_all(9)
like a whole friend group of devm extcon functions, love that for them π―ββοΈπ
aaaand that's the page!! πΈ this one lives in ./drivers/extcon, dated October 2026, and the page itself is devm_extcon_dev_register(9) β mwah, slay, periodt ππ₯
π¦ 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