extcon_set_property_sync(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 duplicates
  • prop β€” the property id, telling you which extcon property we're dealing with
  • prop_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