Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Active Publication Date: 2018-07-13
XIAMEN YAXON NETWORKS CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical solution of the above-mentioned invention patent application is mainly used to solve the problem of poor connection between the top half and the bottom half of the interrupt, but still uses the existing interrupt processing mechanism, which also has shortcomings: 1. It is difficult to modify and needs to be modified at the kernel layer Modification has high requirements for R&D personnel; 2. It is not flexible enough and expensive, because the driver program is in the middle layer of the operating system and application program, and each modification needs to involve the joint debugging of driver program developers and application developers. Human resources are spent

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and application for moving the bottom half of an interrupt handler to an application layer

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for moving the bottom half of the interrupt processing program to the application layer, and a method for processing the bottom half of the interrupt processing program at the application layer based on the method. The beneficial effects of the present invention are as follows: (1) The modification of the interrupt processing program becomes simple, only the application program needs to be modified at the application layer, and the modification of the kernel layer is not involved, and the requirements for R&D personnel are relatively low; (2) The modification and debugging of the interrupt handler becomes flexible and the overhead is small. Only application developers are required to participate, and there is no need for driver developers and application developers to work together; (3) After an interrupt is generated, the interrupt event callback function set by the application is called, and the callback function performs interrupt processing, which is similar in form to The interrupt processing function of the kernel layer is exactly the same. From the perspective of the application program, it is just like developing the interrupt processing program directly at the application layer.

Description

technical field [0001] The present invention relates to an interrupt processing mechanism under linux, and more specifically, relates to a method for moving the bottom half of an interrupt processing program to an application layer, and a method for transferring the bottom half of an interrupt processing program at the application layer based on the method The method of processing. Background technique [0002] Linux breaks down the interrupt handler into two halves: the top half and the bottom half. The top half completes as few urgent functions as possible. It often simply reads the interrupt status in the register and clears the interrupt flag before performing the work of "registering interrupt". In this way, the execution speed of the top half will be fast, and more interrupt requests can be serviced. The next more time-consuming tasks can be handed over to the bottom half to complete. It can be said that the bottom half of the interrupt processing completes most of t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48
Inventor 彭勇许宁任赋郑福弟
Owner XIAMEN YAXON NETWORKS CO LTD