You are on page 1of 1

LINUX DEVICE DRIVER PROGRAMING

UINPUT :

USER LEVEL DRIVER SUPPORT FOR INPUT SUBSYSTEM The uinput driver creates a character device, usually at /dev/uinput, that can

be used to create Linux input devices from userspace. The device's capabilities and identity are established primarily by write()'ing a struct uinput_device. Information not contained in this structure is provided with the UI_SET_* family of ioctl()s. After all this, UI_DEV_CREATE actually registers a new device with the input subsystem. Between UI_DEV_CREATE and UI_DEV_DESTROY, the UI_SET_* ioctl()s can't be used. Once the device has been created, /dev/uinput acts much like an event device. write() sends a struct input_event out of the device, read() fetches input events sent back to the driver by applications. Note that events written will also be echoed back on read.

You might also like