Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for implementing user mode drive program in embedded Linux

A technology of driver program and implementation method, which is applied in the direction of program control device, program loading/starting, etc., can solve problems such as low performance and system compatibility, and achieve the effect of improving coding quality

Inactive Publication Date: 2014-02-19
KUNMING UNIV OF SCI & TECH
View PDF0 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem to be solved by the present invention is to provide a method for implementing a user-mode driver in an embedded Linux system, in order to solve the problems of low performance and compatibility with existing systems in existing user-mode driver solutions

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 for implementing user mode drive program in embedded Linux
  • Method for implementing user mode drive program in embedded Linux
  • Method for implementing user mode drive program in embedded Linux

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] Embodiment 1: First, according to the driver architecture described in the Summary of the Invention, the DM9000 network card kernel mode driver is separated into two parts: k-driver and u-driver. Such as figure 1 as shown, figure 1 A frame structure diagram of an implementation method of a user mode driver provided by the present invention, wherein the solid line is a performance-critical code path, and the dotted line is a performance-independent code path. The k-driver is implemented as a Loadable Kernel Module of Linux, including the core function codes of data processing in the DM9000 network card driver, such as receiving data packets, copying data packets, and interrupt processing. u-driver is implemented as an ordinary user mode program, including some non-hot codes in the DM9000 network card driver, such as device initialization, device configuration, error handling, etc. These codes can be safely moved out of the kernel mode and have no impact on performance. ...

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 implementing a user mode drive program in an embedded Linux, and belongs to the technical field of embedded operating systems. The method for implementing the user mode drive program in the embedded Linux comprises the specific steps of carrying out separation on a traditional kernel mode drive program to form a k-driver component running in a kernel mode and a u-driver component running in a user mode according to whether performance is related or not and priorities, building a dynamic loadable kernel module k-mod in the kernel mode, and building a dynamic link library u-lib in the user mode. According to a user mode programming tool, a programmer is allowed to use universal mature programming tools such as a code debugger when carrying out programming, and coding quality is improved; better performance is achieved, and performance, such as the throughput, the delay and the CPU overhead, is similar to performance of the traditional kernel mode device drive program; fault isolation is achieved, and a fault occurring on a user layer component cannot influence a kernel, namely, safe operation of a whole system cannot be influenced; compatibility is achieved, the method for implementing the user mode drive program in the embedded Linux is compatible with an existing embedded Linux system, and the same interfaces are provided.

Description

technical field [0001] The present invention relates to a kind of realization method of the driver program of user mode under embedded Linux, especially the reinforcement of the driver program under the embedded Linux system, specifically under the premise of ensuring the performance and compatibility with the existing system in the embedded Linux The method for realizing the user state driver program in the system belongs to the technical field of embedded operating system. Background technique [0002] With the rapid development of computer technology and communication technology, embedded systems have penetrated into all aspects of people's lives. Embedded systems are widely used in industrial control, aerospace military, medical and health, consumer electronics and other fields. Among the major embedded operating systems, Linux is widely used in the embedded field due to its open source code, better network performance, streamlined and efficient kernel, higher customizab...

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/44G06F9/445
Inventor 周兰江黄银阁
Owner KUNMING UNIV OF SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products