Method and system for running interrupt service in user space

A user space and service method technology, applied in the field of user space interrupt service methods and systems, can solve the problems of high difficulty in writing interrupt service programs, unstable risks, and high kernels, so as to reduce the risk of kernel instability, reduce the difficulty of writing, and facilitate the Debugging the effect of development

Inactive Publication Date: 2011-08-10
OPZOON TECH
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Computer systems widely use interrupt mechanisms in response to external events. The operating system kernel provides interrupt service routines for commonly used peripherals, and at the same time provides a kernel mechanism that allows users to hook user-defined service routines to specific peripheral interrupts. However, the hooking process Both the interrupt service program and the service program must run in the kernel space, so the interrupt service program writer must have a deep understanding of the operating system kernel mechanism. In addition, due to the wide variety of peripherals, the addressing of internal registers is different, and the methods of clearing, enabling and shielding interrupts are also different. Similarly, it is very difficult to write interrupt service routines, and the kernel has a high risk of instability

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 system for running interrupt service in user space
  • Method and system for running interrupt service in user space
  • Method and system for running interrupt service in user space

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0046] figure 1 It is a flowchart of a user space interrupt service method according to an embodiment of the present invention, including the following steps:

[0047] S1: Send the interrupt information to be registered in the user space to the kernel space;

[0048] S2: Register the interrupt information to be registered in the kernel space, initialize the communication mechanism between the kernel space and the user space, and save the information corresponding to the interrupt information to be registered in the user space The entry address of the interrupt service routine;

[0049] S3: Circularly waiting for an interrupt notification in the user space;

[0050] S4:...

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 discloses a method for running an interrupt service in a user space. The method comprises the following steps of: 1, sending interrupt information to be registered of the user space to a kernel space; 2, registering the interrupt information to be registered in the kernel space, initializing a communication system between the kernel space and the user space, and storing an entry address of an interrupt service program corresponding to the interrupt information to be registered into the user space; 3, circularly waiting for an interrupt inform in the user space; 4, when the interrupt comes, sending the interrupt inform by the kernel space to the user space through the communication system; 5, running the corresponding interrupt service program through the entry address of theinterrupt service program in the user space; and 6, finishing running of the interrupt service program and returning to the step 3. By the method, an interrupt articulation process and the interrupt service program can be run in the user space, so that an interrupt service program writer does not need to know a kernel mechanism of an operating system well, and the writing difficulty of the interrupt service program is reduced.

Description

technical field [0001] The invention relates to the field of computer application technology, in particular to a user space interrupt service method and system. Background technique [0002] Computer systems widely use interrupt mechanisms in response to external events. The operating system kernel provides interrupt service routines for commonly used peripherals, and at the same time provides a kernel mechanism that allows users to hook user-defined service routines to specific peripheral interrupts. However, the hooking process Both the interrupt service program and the service program must run in the kernel space, so the interrupt service program writer must have a deep understanding of the operating system kernel mechanism. In addition, due to the wide variety of peripherals, the addressing of internal registers is different, and the methods of clearing, enabling and shielding interrupts are also different. Similarly, it is very difficult to write the interrupt service r...

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 Applications(China)
IPC IPC(8): G06F9/48
Inventor 殷建儒叶鹏王博
Owner OPZOON TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products