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

NAME

6       input_mt_get_slot_by_key - return slot matching key
7

SYNOPSIS

9       int input_mt_get_slot_by_key(struct input_dev * dev, int key);
10

ARGUMENTS

12       dev
13           input device with allocated MT slots
14
15       key
16           the key of the sought slot
17

DESCRIPTION

19       Returns the slot of the given key, if it exists, otherwise set the key
20       on the first unused slot and return.
21
22       If no available slot can be found, -1 is returned.
23
25Kernel Hackers Manual 3.10         June 2019           INPUT_MT_GET_SLOT_BY(9)
Impressum