Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for loading linux kernel driver

A kernel and content technology, applied in the computer field, can solve problems such as limitations on the versatility of kernel drivers, and achieve the effect of avoiding out-of-bounds access

Active Publication Date: 2017-05-17
三六零数字安全科技集团有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method adds a huge amount of development work, and it is necessary to collect a large number of kernel source codes of various versions, compile the corresponding kernel driver for each version of the kernel, and even the kernel source code of some devices cannot be collected at all, so that the kernel driver The versatility of the

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 loading linux kernel driver
  • Method and device for loading linux kernel driver
  • Method and device for loading linux kernel driver

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0035] The general way to load the kernel driver is to call the command insmod. The insmod command first reads the kernel driver that needs to be loaded into the memory, and then calls the system call init_module to pass the address and length of the kernel driver in memory, as well as the parameters of the driver to the kernel. After the insmod command enters the kernel through the system call init_module, the kernel first copies ...

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

A Linux kernel driver loading method and device, the method comprising: selecting a kernel code consistent with a CPU platform of a target system as a reference kernel code for compiling an initial general kernel driver (S101); filling with a byte of a predetermined size in a structure of the reference kernel code, and compiling a filled reference kernel code and the initial general kernel driver (S102); the kernel driver carried by the target system is searched for in said target system and used as a reference driver, and according to reference driver information, modifying compiled initial general kernel driver to generate a general kernel driver (S103); loading the generated general kernel driver into the kernel of the target system (S104). The technical solution can load a general kernel driver to the target systems having different kernel versions, and also can load the same driver into most Android phones.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for loading a Linux kernel driver. Background technique [0002] In the Linux system, the method of loading the kernel driver is to call the insmod command. Due to the characteristics of Linux, the version information of the loaded kernel driver must be completely consistent with the version information of the kernel before it can be loaded successfully. And because the kernel version is frequently upgraded, and many manufacturers have their own customizations, the Linux kernel versions on Android phones on the market are varied. In order to develop a kernel driver that can run on a certain Android phone, you must find the kernel source code of the corresponding phone, and compile your own kernel driver code and kernel code together. This method adds a huge amount of development work, and it is necessary to collect a large number of kernel source codes of ...

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/445
CPCG06F9/445
Inventor 陈章琪
Owner 三六零数字安全科技集团有限公司