Compilation method and device for a loadable kernel module

A technology of a kernel module and a compiling method, applied in the field of compiling devices capable of loading kernel modules, can solve the problems of high cost, huge workload, trouble and the like

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

AI Technical Summary

Problems solved by technology

[0008] In this case, the workload is very large and the cost is high. Whether it is maintenance or product release, it will become very troublesome, and it may even be unfeasible due to the huge workload and high cost.

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
  • Compilation method and device for a loadable kernel module
  • Compilation method and device for a loadable kernel module
  • Compilation method and device for a loadable kernel module

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0117] 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.

[0118] refer to figure 1 , which shows a flow chart of steps of an embodiment of a method for compiling a loadable kernel module according to an embodiment of the present invention, which may specifically include the following steps:

[0119] Step 101, when an application component is triggered, read one or more LKM templates corresponding to the component;

[0120] The Linux kernel is released in the form of source code, and dist...

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

Embodiment of the invention provides compiling method and device for a loadable kernel module (LKM). The method comprises the steps of reading one or plurality of LKM die plates corresponding to an assembly when the assembly of an application program is triggered; detecting whether the one or the plurality of LKM die plates support the system kernel of a processor of the current device and / or the current operation system; if so, adapting the LKM die plate to the system kernel of the current operation system; compiling the LKM through the adapted LKM die plate. With the adoption of the method and device, the workload can be greatly reduced, the cost is decreased, the application program can gradually support different system structures and kernel range, and therefore, the application program capable of supporting a plurality of processor system frames and system kernels in a large range can be created.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a compilation method of a loadable kernel module and a compilation device of a loadable kernel module. Background technique [0002] On the Linux system, if you want to drive the hardware and modify the kernel functions of the operating system, you need to modify the kernel code or use a loadable kernel module (Loadable kernel module, LKM). If you cannot compile the kernel and want to modify the existing kernel functions, generally Yes through LKM. [0003] LKM has the following limitations: [0004] 1. There needs to be a one-to-one correspondence between the LKM and the kernel version, and the loading of the LKM has a verification process. If you want to install it on the target kernel, you must compile it on the target kernel. [0005] 2. If the number of kernel versions of the Linux system is large, to achieve compatibility, a large number of LKM files must be carried in ...

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): G06F8/41G06F9/445
Inventor 陈耿佳朱江周暂
Owner 三六零数字安全科技集团有限公司
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