'\" t .\" Title: input_set_events_per_packet .\" 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_SET_EVENTS_PER" "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_set_events_per_packet \- tell handlers about the driver event rate .SH "SYNOPSIS" .HP \w'void\ input_set_events_per_packet('u .BI "void input_set_events_per_packet(struct\ input_dev\ *\ " "dev" ", int\ " "n_events" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 the input device used by the driver .RE .PP \fIn_events\fR .RS 4 the average number of events between calls to \fBinput_sync\fR .RE .SH "DESCRIPTION" .PP If the event rate sent from a device is unusually large, use this function to set the expected event rate\&. This will allow handlers to set up an appropriate buffer size for the event stream, in order to minimize information loss\&. .SH "COPYRIGHT" .br