Method for automatically detecting, driving and loading 3G-USB (Universal Serial Bus) network adapter by user mode based on Linux kernel

A 3G-USB, user-mode technology, applied in the computer field, can solve problems such as data copy loss, powerlessness, and packet processing equipment that cannot fully utilize multi-core CPUs, etc., to achieve powerful debugging capabilities, improve development efficiency, and eliminate high overhead.

Inactive Publication Date: 2014-04-23
OPZOON TECH
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the continuous development of technology, in the early stage of the multi-core era, CPU resources were greatly relieved, and the network packet processing equipment equipped with 10GE or more network cards seemed powerless. Certain CPU resources, especially the X86 architecture; the performance loss of data copying from the kernel state to the user state of the Linux operating system will also become an obstacle for the packet processing device to make full use of multi-core CPUs; therefore, if the kernel state driver is eliminated The high overhead of system calls and packet copying has become a major research issue in the industry

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 automatically detecting, driving and loading 3G-USB (Universal Serial Bus) network adapter by user mode based on Linux kernel

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0019] Such as figure 1 Described, the present invention provides a kind of user mode automatic detection based on Linux kernel and driver loading 3G-USB network card method, comprises the following steps:

[0020] Step S1: In the Linux kernel initialization stage, the USB bus registers each driver and scans all devices mounted on the USB bus; in the kernel initialization stage, the USB driver loading will call the unified interface usb_register_driver to register each driver.

[0021] Step S2: each driver traverses all the devices mounted on the USB bus, and judges whether the driver matches the device, if yes, execute step S3, if not, return to step S1.

[0022] Specifically, step S2 further includes:

[0023] Each driver traverses all devices mounted on the USB bus, and judges whether the driver matches the device according to the VendorID and Devic...

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 automatically detecting, driving and loading a 3G-USB (Universal Serial Bus) network adapter by a user mode based on a Linux kernel. The method comprises the steps that: in the initialization period of the Linux kernel, the USB logins each driver and scans all devices mounted on the USB, judges whether the drives are matched with the device, and if yes, continuously judges whether the manufacturer ID of the device is the manufacturer ID of the 3G-USB network adapter; if not, the device is initialized, and if yes, the device is identified to be the 3G-USB network adapter, the information of the 3G-USB network adapter is stored and the initialization of the 3G-USB network adapter is abandoned, and the user mode obtains the information of the 3G-USB network adapter and loads corresponding 3G-USB network adapter driver according to the information of the 3G-USB network adapter. According to the method for automatically detecting, driving and loading the 3G-USB network adapter by the user mode based on the Linux kernel, the automatic detection, driving and loading of the 3G-USB network adapter are all put in the user mode to eliminate high expense on system call and data package copy brought by the kernel mode drive; meanwhile, the user mode drive provides very strong debugging ability, and can free driver developers from fussy debugging operation under Linux, so that the development efficiency is further improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method for automatically detecting and driving a 3G-USB network card based on a Linux kernel in a user state. Background technique [0002] With the continuous development of technology, in the early stage of the multi-core era, CPU resources were greatly relieved, and the network packet processing equipment equipped with 10GE or more network cards seemed powerless. Certain CPU resources, especially the X86 architecture; the performance loss of data copying from the kernel state to the user state of the Linux operating system will also become an obstacle for the packet processing device to make full use of multi-core CPUs; therefore, if the kernel state driver is eliminated The high overhead of system calls and packet copying has become a major research issue in the industry. Contents of the invention [0003] The technical problem to be solved by the present invention is ...

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/445
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