Input subsystem learning notes three-Driven Hierarchy and implementation principle of the device driver layer

Source: Internet
Author: User

Shows the layering of input device drivers in Linux. From this figure, we can easily see how Linux designs the driver architecture of input devices.Introduction and structure of input subsystemNext, we will analyze the driver layers of the input subsystem and the implementation principles of the device driver layer.

Input subsystem device driver layer implementation principle

In Linux, the input device is described using the input_dev struct, which is defined in input. h. The device driver can be implemented by following the steps below.

1) set the events that the input device supports in the driver module loading function;

2) register the input device to the input subsystem;

3 ). when an input operation occurs on the input device (for example, when the keyboard is pressed/lifted, the touch screen is touched/lifted/moved, and the mouse is moved/clicked/lifted ), submits events and corresponding key values/coordinates.

Original link http://www.ourunix.org/post/292.html

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.