'\" t .\" Title: input_set_capability .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Input Subsystem .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "INPUT_SET_CAPABILITY" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_set_capability \- mark device as capable of a certain event .SH "SYNOPSIS" .HP \w'void\ input_set_capability('u .BI "void input_set_capability(struct\ input_dev\ *\ " "dev" ", unsigned\ int\ " "type" ", unsigned\ int\ " "code" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 device that is capable of emitting or accepting event .RE .PP \fItype\fR .RS 4 type of the event (EV_KEY, EV_REL, etc\&.\&.\&.) .RE .PP \fIcode\fR .RS 4 event code .RE .SH "DESCRIPTION" .PP In addition to setting up corresponding bit in appropriate capability bitmap the function also adjusts dev\->evbit\&. .SH "COPYRIGHT" .br