Query: input_mt_get_slot_by_key
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
INPUT_MT_GET_SLOT_BY(9) Input Subsystem INPUT_MT_GET_SLOT_BY(9)NAMEinput_mt_get_slot_by_key - return slot matching keySYNOPSISint input_mt_get_slot_by_key(struct input_dev * dev, int key);ARGUMENTSdev input device with allocated MT slots key the key of the sought slotDESCRIPTIONReturns 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.COPYRIGHTKernel Hackers Manual 3.10 June 2014 INPUT_MT_GET_SLOT_BY(9)