gpio_keys_disable_button(9)
β¨ gpio_keys_disable_button β¨
okay bestie, welcome to the Kernel API Manual π
this is the page for gpio_keys_disable_button, and yes it does exactly what it says on the tin: it disables a given GPIO button. no cap.
π NAME π
gpio_keys_disable_button β disables given GPIO button π«Ά
π¦ SYNOPSIS π¦
void gpio_keys_disable_button (struct gpio_button_data *bdata );
πΈ ARGUMENTS πΈ
bdataβ button data for the button to be disabled. that's the whole vibe, bestie π
π DESCRIPTION π
so basically this disables the button pointed to by bdata π and the way it does that is by masking the IRQ line. iconic, honestly.
after this function is called, the button won't generate input events anymore. periodt. β¨
β οΈ note that one can only disable buttons that don't share IRQs. that's a real caveat, bestie β don't skip it π
also, make sure that bdata->disable_lock is locked when entering this function, to avoid races when concurrent threads are disabling buttons at the same time. like, literally lock it before you come in here πβ¨
π SEE ALSO π
- Kernel file
./drivers/input/keyboard/gpio_keys.c get_n_events_by_type(9)get_bm_events_by_type(9)gpio_keys_enable_button(9)gpio_keys_attr_show_helper(9)gpio_keys_attr_store_helper(9)
mwah π this lil page comes from the source/version at ./drivers/input/keyboard, dated October 2026 β slay, go read the kernel source, 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