Linux interrupts the bottom half of the mechanism

Source: Internet
Author: User

Reference:

Soft interrupts for the next half of Linux processing

Linux interrupts the bottom half of the mechanism

Deep understanding of the Linux kernel Soft interrupt/tasklet/Task Force column

To improve the responsiveness and concurrency of the system, Linux breaks the interrupt processing in the top and bottom halves. When an interrupt is generated, the interrupt corresponding handler (top half) is called, then the corresponding second half can be executed, the interrupt handler returns immediately, and the lower half is called by the operating system at the appropriate time. This greatly reduces the time required to interrupt processing.

The interrupt upper half handler function is a function of the irq_handler_t type registered in the REQUEST_IRQ described in the Linux interrupt architecture.

int int Long Const Char void *dev_id)
in general, tasks with the following characteristics are placed in the top half:1, the time is very sensitive 2, hardware-related 3, can not be interrupted by other interruptions of the work above three points, consider placing in the lower half. The mechanism for interrupting the bottom half of the implementation is:1.tasklet2. Working queue work queue3. Soft interrupt Softirq where Tasklet is implemented by a soft interrupt.

Linux interrupts the bottom half of the mechanism

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.