extcon_get_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

NAME 🌸

okay so bestie, welcome to extcon_get_state(9) from the Kernel API Manual πŸ’–. This page is for extcon_get_state β€” literally β€œGet the state of an external connector.” That’s the whole name, no cap. 🫢

SYNOPSIS ✨

int extcon_get_state (struct extcon_dev *edev , const unsigned int id );

That’s the function signature, copied exactly like the iconic little code artifact it is. πŸŽ€

ARGUMENTS πŸŽ€

  • edev β€” the extcon device. It’s the device, obvi. πŸ’…
  • id β€” the unique id indicating an external connector. It’s the unique identifier for which external connector we mean. 🌈

DESCRIPTION πŸ’…

Returns 0 if success or error number if fail. That’s the whole contract, bestie β€” success serves you a 0, and fail hands back an error number. πŸ“

SEE ALSO πŸ¦‹


and that’s the whole page, bestie πŸ’–. Footer deets: source/version is ./drivers/extcon, date is October 2026, and the manual page is extcon_get_state(9). slay. πŸŽ€βœ¨

πŸ“¦ where this page comes from