---
name: "input_set_events_per_packet"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/input_set_events_per_packet"
---

# input\_set\_events\_per\_packet(9)

tell handlers about the driver event rate

## NAME

input\_set\_events\_per\_packet - tell handlers about the driver event rate

## SYNOPSIS

**void input\_set\_events\_per\_packet(struct input\_dev \*** *dev***, int** *n\_events***);**

## ARGUMENTS

*dev*

the input device used by the driver

*n\_events*

the average number of events between calls to **input\_sync**

## DESCRIPTION

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.

## COPYRIGHT
