Linux Embedded Drive Learning path (21) character device driver summary and introduction of block device drivers

Source: Internet
Author: User

Character device drivers

An application is a function called open Read write in a C library. In order to operate the hardware, the driver module is introduced.

Build a simple drive that has a few steps.

1. Create File_operations

2. Request a device number

3. Registering character device drivers,

4. Drive entry

5. Drive exit

Check that the data is coming in a way:

1. Query method

2. Hibernate wake-up mode

If the device fails to wake when an exception occurs, it will always be in hibernation.

3. Poll mechanism

If not awakened, you can wake yourself up for a certain amount of time.

4. Asynchronous notification (signal)

In order to enhance generality, the input subsystem is used in several ways.

Block device drivers

Sd

Linux Embedded Drive Learning path (21) character device driver summary and introduction of block device drivers

Related Article

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.