'\" t .\" Title: input_mt_get_slot_by_key .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Input Subsystem .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "INPUT_MT_GET_SLOT_BY" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Input Subsystem" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" input_mt_get_slot_by_key \- return slot matching key .SH "SYNOPSIS" .HP \w'int\ input_mt_get_slot_by_key('u .BI "int input_mt_get_slot_by_key(struct\ input_dev\ *\ " "dev" ", int\ " "key" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 input device with allocated MT slots .RE .PP \fIkey\fR .RS 4 the key of the sought slot .RE .SH "DESCRIPTION" .PP Returns the slot of the given key, if it exists, otherwise set the key on the first unused slot and return\&. .PP If no available slot can be found, \-1 is returned\&. Note that for this function to work properly, \fBinput_mt_sync_frame\fR has to be called at each frame\&. .SH "COPYRIGHT" .br