extcon_get_state(9)
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 π¦
- Kernel file
./drivers/extcon/extcon.c struct extcon_cable(9)extcon_sync(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_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, 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
- 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