extcon_set_p...y_capability(9)
π extcon_set_property_capability β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual, and specifically to extcon_set_p...y_capability(9) β yes the title got truncated, it's giving "my name is too long for the header bar" energy, but we move. This one lives in the kernel's extcon corner and it's literally the function that tells everyone "hey, this property? available. mark it down." β¨
πΈ NAME πΈ
extcon_set_property_capability β Set the capability of the property for an external connector.
Like, set the capability. Of the property. For an external connector. That's the whole gig, no cap π
β¨ SYNOPSIS β¨
int extcon_set_property_capability (struct extcon_dev *edev , unsigned
int id , unsigned int prop );
three args, one int coming back at you, that's the vibe π
π«Ά ARGUMENTS π«Ά
edevβ the extcon device π§ (the main character of this operation, obviously)idβ the unique id indicating an external connector β (yes bestie, unique, don't be out here reusing ids)propβ the property id indicating an extcon property πΈ (it's a property id, not the property itself, keeping it iconique)
π DESCRIPTION π
okay so important note first, because reading comprehension is self-care: this function sets the capability of the property for an external connector β the whole point is to mark the bit in the capability bitmap. And that bit? it means the available state of the property. so like, the bitmap bit literally stands for "this property is available" π₯ that's the entire slay.
Returns 0 if success or error number if fail. that's it. 0 = we ate. error number = we did not eat π
π¦ SEE ALSO π¦
everything's in the kernel file ./drivers/extcon/extcon.c, and here's the whole friend group, no one left out π:
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_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)
ngl bestie, extcon_alloc_muex(9) really said "I'm not like other allocations" and kept that spelling. respect π
π lil sign-off π
this icon was brought to you by the ./drivers/extcon directory, stamped October 2026, and printed under the manual name Kernel API Manual. go forth and set those property capabilities, periodt π
πβ
π¦ 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