extcon_set_property(9)
π extcon_set_property(9) β the external-connector property glow-up π
okay so bestie, welcome to the Kernel API Manual! Today we're talking about extcon_set_property(9), and it is literally the function that sets the property value of an external connector. No cap. π«Άβ¨
β¨ NAME β¨
extcon_set_property β Set the property value of an external connector. π
πΈ SYNOPSIS πΈ
int extcon_set_property (struct extcon_dev *edev , unsigned int id ,
unsigned int prop , union extcon_property_value prop_val );
π ARGUMENTS π
edevβ the extcon device. Your connector's home base, bestie. πidβ the unique id indicating an external connector. It's giving which connector. π₯propβ the property id indicating an extcon property. Which property are we setting? That's the one. β¨prop_valβ the pointer including the new value of extcon property. The new-value container, periodt. π
π¦ DESCRIPTION π¦
Important note, bestie: each property should be included in the list of supported properties according to the extcon type. Like, that's the vibe check β the property should be in the supported list for its extcon type. π
Returns 0 if success or error number if fail. So success is 0, and if it doesn't slay, you get an error number. ππ
π 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_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_register_notifier_all(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)
Catch you later, bestie π«Ά β source/version: ./drivers/extcon, date: October 2026, and this whole page is extcon_set_property(9). Bye, love you! ππ
π¦ 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