input_mt_get_slot_by_key(9)

input_mt_get_slot_by_key9

Return slot matching key

Usage

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

Arguments

dev

input device with allocated MT slots

key

the key of the sought slot

Overview

Returns the slot of the given key, if it exists, otherwise set the key on the first unused slot and return.

If no available slot can be found, -1 is returned.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.