Linux Kernel Driver-Input subsystem device driver layer

Source: Internet
Author: User

Android, X Windows, QT, and many other applications support input devices, such as the keyboard, mouse, and touch screen, in Linux systems, or increasingly prefer the standard input subsystem.

Because the input subsystem has completed the character-driven file operation interface, the core task of writing the driver is to complete the interface set aside by the input system, with little workload. But if you want to apply it more flexibly, You need to analyze the input subsystem.

 

IInput subsystem framework

It is the framework of the input subsystem. The input subsystem consists of three parts: the input core, the driver, and the event handler. An input event, such as moving the mouse, pressing the keyboard, and moving joystick, arrives at the user space through input driver-> input core-> event handler-> userspace and passes it to the application.

Note: keyboard. C does not generate nodes under/dev/input, but serves as the input of the ttyn terminal (excluding the serial port terminal.

 

Displays the layers of input device drivers in Linux.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.