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

Method and device for loading kernel module

A kernel module and kernel technology, applied in the field of kernel module loading, can solve problems such as increasing development costs and limitations on the applicability of kernel modules, and achieve the effects of enhancing applicability and saving development costs

Inactive Publication Date: 2016-08-24
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, due to the diversity of kernel versions, the parameters that need to be verified by the kernel in a kernel module loaded on one version of the kernel are fixed, so that the kernel module can only be loaded on one version of the kernel, making the kernel module Applicability is limited, increasing development costs

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0015] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0016] figure 1 An exemplary system architecture 100 to which embodiments of the kernel module loading method or apparatus of the present application can be applied is shown.

[0017] like figure 1 As shown, the system architecture 100 may include terminal devices 101 , 10...

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 and device for loading a kernel module. The method comprises the specific steps that a response to a loading operation for loading the kernel module to be loaded to a target kernel is made, and feature information of the target kernel is acquired; based on the feature information, loading information corresponding to the kernel module to be loaded is configured; based on the loading information, the kernel module to be loaded is loaded into the target kernel. When the kernel module needs to be loaded to the target kernel, kernel version parameters, kernel symbol verifying parameters, kernel module loading function pointers, kernel module unloading function pointers and other loading information in an ELF file corresponding to the kernel module are directly modified, the loading information is suitable for verification of the target kernel, and the kernel module can be loaded into the target kernel. Under the condition that the kernel module does not need to be recompiled, the kernel modules are loaded into kernels of different versions, the applicability of the kernel module is enhanced, and the development cost is reduced.

Description

technical field [0001] The present application relates to the field of computers, in particular to the field of operating systems, and in particular to a kernel module loading method and device. Background technique [0002] In the development of a kernel program, it is usually necessary to generate a kernel module containing the source code of the kernel program, and then load the kernel module into the kernel, so that the kernel program can run in the kernel. At present, when the kernel module is loaded into the kernel, the usual way is to configure the parameters to be verified by the kernel during the loading process of the kernel module in the kernel module, and then recompile the kernel module and load it into the kernel. [0003] However, due to the diversity of kernel versions, the parameters that need to be verified by the kernel in a kernel module loaded on one version of the kernel are fixed, so that the kernel module can only be loaded on one version of the kerne...

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
CPCG06F9/44521G06F9/445
Inventor 郑龙日夏良钊卢永强包沉浮张煜龙韦韬
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
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