Asynchronous Communication for drivers

Source: Internet
Author: User
The driver uses asynchronous communication-general Linux technology-Linux technology and application information. For more information, see the following section. The younger brother is engaged in embedded Linux. In the sixth chapter of LDD3, the content of the driver's asynchronous communication is mentioned in the advanced character driver. Specifically, the fasync interface is implemented when the driver program is written, but I try to find that Oops errors occur every time.

How can I write a Linux Device Driver to send a signal from the driver to the application to indicate an event (for example, data is ready )?

I tried to write a GPIO interrupt driver, and each interrupt sent a SIGIO signal to a specific pid process. The code was written according to the LDD3 sample code. I have attached the source code of the driver and test driver, as well as the Oops error message. Let's take a look at what's going on!

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.