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 the problem that LKM cannot be compatible with different kernels

Active Publication Date: 2015-06-03
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a kernel module loading method and device to at least solve the technical problem that LKM cannot be compatible with different kernels

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 1

[0022] According to an embodiment of the present invention, a kernel module loading module is provided, such as figure 1 As shown, the method includes:

[0023] S102: Obtain a first LKM, wherein the first LKM satisfies a first loading condition to be loaded into the first kernel;

[0024] S104: Obtain a second LKM, wherein the second LKM satisfies a second loading condition to be loaded into the second kernel but does not meet the first loading condition;

[0025] S106: Update the second LKM according to the first LKM, wherein the updated second LKM satisfies the first loading condition;

[0026] S108: Load the updated second LKM into the first kernel.

[0027] It should be clear that one of the problems to be solved by the technical solution of the present invention is to provide a method so that the LKM written based on an operating system and a version of the kernel of the operating system can be successfully loaded into other operating systems or the same In the kernel ...

Embodiment 2

[0062] According to an embodiment of the present invention, a kernel module loading device for implementing the above kernel module loading method is also provided, such as Figure 8 As shown, the device includes:

[0063] 1) The first obtaining unit 802 is configured to obtain a first loadable kernel module LKM, wherein the first LKM satisfies a first loading condition to be loaded into the first kernel;

[0064] 2) The second obtaining unit 804 is configured to obtain a second LKM, wherein the second LKM satisfies the second loading condition to be loaded into the second kernel but does not meet the first loading condition;

[0065] 3) The first updating unit 806 is configured to update the second LKM according to the first LKM, wherein the updated second LKM satisfies the first loading condition;

[0066] 4) A loading unit 808, configured to load the updated second LKM to the first kernel.

[0067] It should be clear that one of the problems to be solved by the technical ...

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

Method and Apparatus for loading kernel modules are disclosed. The method includes: obtaining a first loadable kernel module (LKM) and a second LKM, wherein the first LKM satisfies a first loading condition for being loaded into a first kernel, and the second LKM satisfies a second loading condition for being loaded into a second kernel different from the first kernel; identifying respective differences in one or more characteristic properties between the first and second LKMs; in accordance with the identified respective differences, modifying a respective one of the first and second LKMs; and loading the modified respective one of the first and second LKMs into the first kernel, wherein the modified respective one of the first and second LKM provides one or more functions in accordance with the second LKM.

Description

technical field [0001] The invention relates to the field of computers, in particular to a kernel module loading method and device. Background technique [0002] The operating system (Operating System) is a program that manages computer hardware and software resources. It is responsible for managing and configuring memory, determining the priority of system resource supply and demand, controlling input and output devices, operating the network, and managing file systems. The kernel (Kernel) is the core of an operating system, which refers to a system software that provides functions such as hardware abstraction layer, disk and file system control, and multitasking. Among them, because it is relatively complicated to directly operate on computer hardware, the kernel usually Provides a hardware abstraction to accomplish these operations. Hardware abstraction hides complexity and provides a set of concise and unified interfaces for application software and hardware, making pro...

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
IPC IPC(8): G06F9/445
CPCG06F9/44526
Inventor 管胜
Owner TENCENT TECH (SHENZHEN) 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