Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and device for processing interrupt

A processing method and interrupt information technology, applied in the network field, can solve the problem that the kernel cannot directly call the interrupt handler

Inactive Publication Date: 2012-03-21
HUAWEI TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

With the technical development of the operating system, the technology of separating the kernel and the process is gradually adopted. With this technology, the kernel cannot directly call the interrupt handler of the upper layer software; at the same time, as the application environment becomes more and more complex, there are more and more types of interrupts. If an interrupt occurs in the process, and the type of interrupt that occurs cannot be handled by the interrupt handler prestored in the kernel, in this case, the existing interrupt processing method is powerless

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
  • Method and device for processing interrupt
  • Method and device for processing interrupt
  • Method and device for processing interrupt

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] see figure 1 , is Embodiment 1 of an interrupt processing method provided by the present invention. Embodiment 1 is described from the perspective of a process, and may specifically include:

[0022] Step 101, receiving the interrupt information sent by the kernel;

[0023] Step 102: Call an interrupt handler corresponding to the interrupt identifier to process the interrupt according to the interrupt identifier included in the interrupt information, and the interrupt handler is stored in a preset space outside the kernel in a manner corresponding to the interrupt identifier.

[0024] In Embodiment 1, when there is only one process running in the system, when an interrupt occurs, the kernel sends the interrupt information to the only process, and the process calls a corresponding interrupt handler to handle the interrupt. However, the actual situation is that there are often multiple processes running in the system. When an interrupt occurs, the kernel needs to send in...

Embodiment 2

[0038] see figure 2 , loading the driver in the process may include the following steps:

[0039] Step 201, sending the driver ID that the process can handle and the process ID corresponding to the driver ID to the kernel;

[0040] Step 202, the kernel receives loading request information, and the loading request information includes the identification of the driver to be loaded;

[0041] Step 203, the kernel finds the corresponding process ID according to the driver ID, and sends the loading request information to the process corresponding to the process ID, and the process calls the preset driver corresponding to the driver ID to respond to the loading request, and the preset driver Programs are stored in preset space outside the kernel.

[0042] When step 202 is specifically implemented, when there is a need to load the driver program, after the kernel receives such a request, the loading request is regarded as an interrupt.

[0043] When implementing step 203, the proc...

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 embodiment of the invention provides a method for processing interrupt, comprising, receiving the interrupt information from a kernel; calling the corresponding interrupt processing program of an interrupt identification included in the interrupt information and processing the interrupt; and storing a preset interrupt processing program in a preset space outsides the kernel in correspondence to the interrupt identification. Compared with the prior art, in the embodiment of the invention, the interrupt processing program is stored in the preset space outsides the kernel, when needing to calling, the interrupt processing program can be called by an interrupt task agent in a process, which overcomes the defects of the prior art.

Description

technical field [0001] The present invention relates to the field of network technology, and more specifically, to an interrupt processing method and device. Background technique [0002] In a computer system, an interrupt is a process of invoking the corresponding handler when an external event occurs. In a computer system, in response to a specific interrupt, the kernel or process executes a function called an interrupt handler. [0003] In the application of the existing embedded operating system, the interrupt handler is usually loaded in the kernel as a part of the kernel. When an interrupt occurs in the process, the kernel calls its own pre-stored interrupt handler to handle the interrupt. With the technical development of the operating system, the technology of separating the kernel and the process is gradually adopted. With this technology, the kernel cannot directly call the interrupt handler of the upper layer software; at the same time, as the application environ...

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 HUAWEI TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More