extcon_regis...notifier_all(9)
πΈ 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 withnbβ 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 β¨
- 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_unregister_notifier_all(9)extcon_alloc_cables(9)extcon_alloc_muex(9)extcon_alloc_groups(9)extcon_dev_register(9)extcon_dev_unregister(9)extcon_get_edev_name(9)
like... that's a lot of friends. go read them too, bestie π
π mwah, that's the whole page. this one lives in./drivers/extconand 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
- 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