extcon_regis...notifier_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 extcon_regis...notifier_all(9) 🌸

okay bestie, welcome to the Kernel API Manual β€” this one's the extcon_regis...notifier_all(9) page and it's honestly kind of a big deal if you're into external connector gossip πŸ’…


✨ NAME ✨

extcon_register_notifier_all β€” register a notifier block for all the connectors. like, all of them. every single one. no cap 🫢


✨ SYNOPSIS ✨

int extcon_register_notifier_all (struct extcon_dev *edev , struct
notifier_block *nb );

that's it. that's the whole signature. iconic honestly πŸ”₯


✨ ARGUMENTS ✨

  • edev β€” the extcon device πŸ’– like, the one you're signing up with
  • nb β€” a notifier block to be registered. yes it's a notifier block. yes you have to make one. slay

✨ DESCRIPTION ✨

okay so quick vibe check πŸ‘‘ note that this function registers a notifier block in order to receive the state change of all supported external connectors from the extcon device. so you're not just watching one connector, you're watching all of the supported ones. main character energy, fr fr.

and listen β€” when your callback gets called, the second parameter given to the callback of nb (val) is the current state, and the third pameter is the pointer of extcon device. so val = the tea β˜•, third param = where it came from. iykyk 🧚

returns 0 if success, or an error number if fail. simple as that. no notes πŸ’€


✨ SEE ALSO ✨

like... that's a lot of friends. go read them too, bestie 🌈


πŸ’– mwah, that's the whole page. this one lives in ./drivers/extcon and it's dated October 2026 β€” same title on both ends, extcon_regis...notifier_all(9), because consistency is cute ✨ bye luv u πŸ«ΆπŸŽ€
πŸ“¦ where this page comes from