devm_extcon...notifier_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 character
  • nb β€” 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:


🌈 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