STRUCT GPIO_KEYS_BUTTON(9)
πΈ NAME πΈ
okay so welcome to the struct gpio_keys_button(9) page in the Kernel API Manual, bestie β¨ this struct is literally all about configuration parameters β the NAME is struct gpio_keys_button β configuration parameters. periodt π
β¨ SYNOPSIS β¨
struct gpio_keys_button {
unsigned int code;
#ifdef CONFIG_GPIOLIB_LEGACY;
int gpio;
#endif;
int active_low;
const char *desc;
unsigned int type;
int wakeup;
int wakeup_event_action;
int debounce_interval;
bool can_disable;
int value;
unsigned int irq;
unsigned int wakeirq;
};
π Members π
codeβ input event code (KEY_*,SW_*) πgpioβ-1if this key does not support gpio π¦active_lowβtrueindicates that button is considered depressed whengpiois lowdescβ label that will be attached to button's gpio π·οΈtypeβ input event type (EV_KEY,EV_SW,EV_ABS) βwakeupβ configure the button as a wake-up source π΄wakeup_event_actionβ event action to trigger wakeupdebounce_intervalβ debounce ticks interval in msecs β±οΈcan_disableβtrueindicates that userspace is allowed to disable button via sysfs π«Άvalueβ axis value forEV_ABSirqβ Irq number in case of interrupt keys β‘wakeirqβ Optional dedicated wake-up interrupt π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/gpio_keys.hstructgpio_keys_platform_data(9)
mwah π β thatβs the whole vibe from ./include/linux, dated October 2026, for the struct gpio_keys_button(9) page. you ate this, bestie π«Ά
π¦ 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