devm_extcon...notifier_all(9)
π devm_extcon_register_notifier_all(9)
okay bestie, this one lives in the Kernel API Manual (yes, the kernel has a manual, she's fancy like that) β let's get into it β¨
π¦ NAME
devm_extcon_register_notifier_all β and ngl, the original page leaves the description blank, so we're just vibing with the function name itself. No cap, that's literally all it says. π
β¨ SYNOPSIS
int devm_extcon_register_notifier_all (struct device *dev , struct extcon_dev *edev , struct notifier_block *nb );
π ARGUMENTS
devβ the device that owns the extcon device being created πedevβ the extcon device itself, the main characternbβ a notifier block to be registered, aka the little thing you're signing up for the notifications
πΈ DESCRIPTION
- Resource-managed
extcon_register_notifier_all
So here's the tea β: this function handles the notifier of the extcon device automatically for you, using device resource management β which is iconic because it simplifies all the controlling of unregistering the notifier of the extcon device. Like, you don't have to manually clean up after yourself, the devres machinery does it. π
Want more info? Go refer to that function (extcon_register_notifier_all) β this page is just the managed wrapper, iykyk. π«Ά
Returns 0 if success, or a negative error number if failure. π
fr fr, negative = something went wrong, don't ignore it.
π₯ SEE ALSO
Kernel file ./drivers/extcon/devres.c plus these besties:
devm_extcon_dev_allocate(9)devm_extcon_dev_free(9)devm_extcon_dev_register(9)devm_extcon_dev_unregister(9)devm_extcon_register_notifier(9)devm_extcon_unregister_notifier(9)devm_extcon_unregister_notifier_all(9)
π sign-off π
This page comes to you from ./drivers/extcon (that's the source path, periodt), dated October 2026, and it's part of the Kernel API Manual because of course it is. Slay, go register that notifier. βπ
devm_extcon...notifier_all(9)
π¦ 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