STRUCT TC_KEYPAD(9)
โจ struct tc_keypad(9) โจ
okay so bestie, welcome to the Kernel API Manual ๐ today we're looking at struct tc_keypad โ literally the data structure that the keypad driver uses ๐ it's giving "backstage pass to the whole keypad operation" and honestly? iconic.
๐ธ NAME ๐ธ
struct tc_keypad โ the data structure used by the keypad driver ๐ซถ
๐ SYNOPSIS ๐
struct tc_keypad {
struct tc3589x *tc3589x;
struct input_dev *input;
const struct tc3589x_keypad_platform_data *board;
unsigned int krow;
unsigned int kcol;
unsigned short *keymap;
bool keypad_stopped;
};
like, that's the whole squad right there ๐
๐ฆ MEMBERS ๐ฆ
tc3589xโ pointer totc35893๐ซ your main character pointer, yepinputโ pointer to the input device object ๐ฎ that's the vibe that actually reports the inputboardโ the keypad platform device ๐ platform data, we stankrowโ number of rows ๐ that's rows, no capkcolโ number of columns ๐ and that's columns, obviouslykeymapโ matrix scan code table for keycodes ๐ฅ the whole grid-to-keycode translation situation, super important nglkeypad_stoppedโ holds keypad status ๐ like, is the keypad stopped or not, that's the whole job
โญ SEE ALSO โญ
- Kernel file
./drivers/input/keyboard/tc3589x-keypad.c๐ the actual source, go read it bestie struct tc3589x_keypad_platform_data(9)๐ the platform data struct, its bestie
so yeah, that's the whole page ๐ง from ./drivers/input/keyboard, version dated October 2026 โ mwah, slay, periodt ๐
โจ๐ซถ
๐ฆ 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