1SPARSE_KEYMAP_SETUP(9)          Input Subsystem         SPARSE_KEYMAP_SETUP(9)
2
3
4

NAME

6       sparse_keymap_setup - set up sparse keymap for an input device
7

SYNOPSIS

9       int sparse_keymap_setup(struct input_dev * dev,
10                               const struct key_entry * keymap,
11                               int (*setup) (struct input_dev *, struct key_entry *));
12

ARGUMENTS

14       dev
15           Input device
16
17       keymap
18           Keymap in form of array of key_entry structures ending with KE_END
19           type entry
20
21       setup
22           Function that can be used to adjust keymap entries depending on
23           device's deeds, may be NULL
24

DESCRIPTION

26       The function calculates size and allocates copy of the original keymap
27       after which sets up input device event bits appropriately. Before
28       destroying input device allocated keymap should be freed with a call to
29       sparse_keymap_free.
30
32Kernel Hackers Manual 3.10         June 2019            SPARSE_KEYMAP_SETUP(9)
Impressum