STRUCT TC_KEYPAD(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ 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 to tc35893 ๐Ÿ’ซ your main character pointer, yep
  • input โ€” pointer to the input device object ๐ŸŽฎ that's the vibe that actually reports the input
  • board โ€” the keypad platform device ๐ŸŒˆ platform data, we stan
  • krow โ€” number of rows ๐Ÿ“ that's rows, no cap
  • kcol โ€” number of columns ๐Ÿ“ and that's columns, obviously
  • keymap โ€” matrix scan code table for keycodes ๐Ÿ”ฅ the whole grid-to-keycode translation situation, super important ngl
  • keypad_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