A method and application for moving the bottom half of an interrupt handler to an application layer
A processing program and application layer technology, applied in the field of interrupt processing mechanism, can solve the problems of high overhead, difficult modification, poor connection effect between the top half and bottom half of the interrupt, etc., to achieve the effect of low overhead and flexible modification and debugging work.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0053] The method of moving the bottom half of the interrupt handler to the application layer under Linux, the specific implementation steps are as follows:
[0054] 1) The kernel layer driver registers an interrupt top half processing function with the kernel in order to receive the hardware interrupt signal and perform top half processing; registering the interrupt top half processing function with the kernel is an interface provided by the linux kernel, using the request_irq function to Realization, pass an ordinary function into the kernel as a parameter of the request_irq function, and this ordinary function becomes an interrupt top half processing function, which can receive hardware interrupt signals and perform interrupt top half processing;
[0055] 2) The kernel layer driver creates a netlink socket to broadcast interrupt events to the system; creating a netlink socket is an interface provided by the linux kernel, which is realized by using the netlink_kernel_create f...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
