Linux interrupt self-study notes

Source: Internet
Author: User

What is interruption:

Interruption is a way for some hardware to communicate asynchronously with the CPU. Exceptions are similar (the fundamental difference between interruption and exception remains to be studied and will be explained in the new Article)

Essence of Interruption:

An electrical signal sent to the interrupt controller, and then sent to the CPU by the interrupt controller. Finally, the CPU calls the previously registered interrupt controller.

Interrupt type:

Fast interrupt (sa_interrupt): disables all interrupts in the interrupt processing program.

Shared interrupt (sa_shirq): Multiple interrupt handlers share the same disconnection. When the interrupt arrives, each interrupt handler registered on the interrupt line is called.

Interrupt context:

When a process is interrupted or the lower half of the process, the kernel is in the interrupt context and is irrelevant to any process. Current is meaningless (only indicates the process that is interrupted ). In the interrupt context, sleep is not allowed. Because there is no process expression, once sleep, the Scheduler cannot be activated.

There is an interrupt stack, one page in size, which is the interrupt context.

The request_irq () function may sleep, because it includes file operations on proc.

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.