Equipment driving method for user mode and kernel mode driver cooperative processing framework

A co-processing, device-driven technology, applied in electrical digital data processing, program control design, instruments, etc., can solve problems such as limited application, insufficient power of equipment manufacturers, and no support for direct memory access, to improve stability and reliability. the effect of simplifying the drive development and maintenance process

Active Publication Date: 2021-01-15
NAT UNIV OF DEFENSE TECH
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the problem of peripherals has always been an important factor affecting the development of Linux systems. The main reason is that the development of drivers under Linux is complicated, and it is required to comply with the GPL agreement to disclose the source code, resulting in insufficient motivation for some device manufacturers in driver development.
Implementations such as this inevitably have the problem of performance degradation, so they have not been able to be applied on a large scale
And like UIO in Linux, it does not support direct memory access (Direct Memory Access, DMA) in user space, which limits its application on devices that require DMA support

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
  • Equipment driving method for user mode and kernel mode driver cooperative processing framework
  • Equipment driving method for user mode and kernel mode driver cooperative processing framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings, and the implementation method of the present invention will be specifically described. It should be understood that the embodiments described here are only used to explain the present invention, but not to limit the present invention.

[0025] This embodiment is based on a device driver method based on a user-mode and kernel-mode driver cooperative processing framework, including:

[0026] 1) Initialize the user space driver framework (User Space Driver Framework, hereinafter referred to as framework USDF), such as figure 1 As shown, the framework USDF includes:

[0027] Kernel space part driver, which runs in the kernel space as a Loadable Kernel Module (LKM), is used to provide a stable kernel space driver development interface;

[0028] User mode driver (US dr...

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 an equipment driving method for a user mode and kernel mode-driver cooperative processing framework and the method comprises the steps: initializing the user mode and kernel mode driver cooperative processing framework, comprising a kernel mode driver as a loadable kernel module to operate in a kernel space used for providing a stable kernel mode driver development interface; and a user mode driver as a shared library, is located in the user space and used for providing an interface for user mode driver development; and when an application program in the user space calls the user mode driver, enabling the user mode driver to interact with the kernel mode driver by the user mode driver, or directly interact with the kernel mode driver by character equipment and DMA buffer equipment so that operation on specified equipment is completed. User mode and kernel mode driver cooperative processing can be achieved, interaction with hardware is jointly completed, the driver development and maintenance process can be greatly simplified, and the stability and reliability of the kernel are improved.

Description

technical field [0001] The invention relates to the field of computer operating systems, in particular to a device driving method based on a user mode and a kernel mode driver cooperative processing framework under a Linux system. Background technique [0002] With the development of computer technology, Linux is no longer limited to the application of servers and terminal systems, and is gradually widely used on mobile devices. However, the problem of peripherals has always been an important factor affecting the development of Linux systems. The main reason is that the development of drivers under Linux is complicated, and it is required to comply with the GPL agreement to disclose the source code, resulting in insufficient motivation for some device manufacturers in driver development. Nowadays, the proportion of device driver code in the kernel is increasing, especially the drivers ported and developed by enterprises themselves. When these drivers have problems, such as i...

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/4401G06F13/10
CPCG06F9/4411G06F13/102
Inventor 李小玲朱浩王静秦莹高珑马俊董攀谭郁松吴庆波
Owner NAT UNIV OF DEFENSE 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