extcon_set_property_sync(9)
π extcon_set_property_sync(9) β¨
okay so this is from the Kernel API Manual and bestie, it's giving "set a property on an external connector, but make it synced" π«Ά
πΈ NAME πΈ
extcon_set_property_sync β set the property of an external connector, with sync π«
π SYNOPSIS π
int extcon_set_property_sync (struct extcon_dev *edev , unsigned int id , unsigned int prop , union extcon_property_value prop_val );
π¦ ARGUMENTS π¦
edevβ the extcon device, aka the main character of this whole situation πidβ the unique id that points at one specific external connector, no cap, no duplicatespropβ the property id, telling you which extcon property we're dealing withprop_valβ the pointer holding the shiny new value of the extcon property π
π DESCRIPTION π
Heads up, bestie, this part matters: when you're setting the property value of an external connector, the external connector should be attached. Fr fr. Not optional, not a vibe suggestion.
Also, each property has to be included in the list of supported properties according to the extcon type β like, you can't just show up with a property nobody invited to the list π
Returns 0 if it slayed (success), or an error number if it failed π
β 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_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)
and that's the whole page, mwah π β brought to you by the fine folks at ./drivers/extcon, dated October 2026. go forth and sync responsibly, bestie π§ββοΈβ¨
π¦ 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