extcon_set_p...y_capability(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ:


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