Method, device and system for calling operating system library

An operating system and call request technology, applied in the direction of program control device, execution example, program loading/starting, etc., can solve problems such as memory redundancy storage

Active Publication Date: 2019-12-13
HUAWEI TECH CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problem of memory redundant storage caused by the prior art, the embodimen

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, device and system for calling operating system library
  • Method, device and system for calling operating system library
  • Method, device and system for calling operating system library

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0113] Example 1

[0114] The embodiment of the present invention provides a method for calling an operating system library, and the execution subject of the method is the execution domain, see image 3 , The method includes:

[0115] Step 101: Receive the memory access address of the application executable file sent by the management domain.

[0116] In this embodiment, the execution domain includes one or more processors for running the executable file of the application program. Optionally, the execution domain may also include at least one of memory, external storage, network interface, and IO device.

[0117] The memory access address of the application executable file is the address of the application executable file stored in the memory of the execution domain. The memory of the execution domain is the memory directly connected to the processor in the execution domain.

[0118] As mentioned in the application scenario section, the operating system running on the management doma...

Example Embodiment

[0125] Example 2

[0126] The embodiment of the present invention provides a method for calling an operating system library, and the execution subject of the method is the management domain, see Figure 4 , The method includes:

[0127] Step 201: Receive an instruction to open an executable file of the application program.

[0128] Step 202: Configure the execution domain according to the opening instruction.

[0129] In this embodiment, the execution domain includes one or more processors for running the executable file of the application program.

[0130] Optionally, the execution domain may also include at least one of memory, external storage, network interface, and IO device.

[0131] Step 203: Store the application executable file in the memory of the execution domain, and obtain the memory access address of the application executable file.

[0132] In this embodiment, the memory access address of the application executable file is the address of the application executable file stor...

Example Embodiment

[0135] Example 3

[0136] The embodiment of the present invention provides a method for invoking an operating system library, see Figure 5 , The method includes:

[0137] Step 301: The management domain receives the opening instruction of the application executable file.

[0138] Specifically, the application executable file may be compiled from compilation information of the application and operating system library, and the compilation information includes the name of the dynamic operating system library. The name of the dynamic operating system library can be used to call the dynamic operating system library in the process of running the application executable file, that is, to obtain and access the memory address of the dynamic operating system library.

[0139] Further, the compilation information may also include a static operating system library.

[0140] Step 302: The management domain configures the execution domain according to the opening instruction.

[0141] In this embodim...

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 the technical field of operating systems. Provided are a method, device and system for calling an operating system library. The method comprises: (101) receiving, by an execution domain, a memory access address of an application executable file transmitted by an administration domain, wherein the execution domain comprises one or more processors for running the application executable file, and the memory access address of the application executable file is an address of the application executable file stored in an memory of the execution domain; (102) running, by the execution domain, and according to the memory access address of the application executable file, the application executable file; (103) acquiring, by the execution domain, a memory access address of a dynamic operating system library when running the application executable file to call the dynamic operating system library; and (104) calling, by the execution domain, and according to the memory access address of the dynamic operating system library, the dynamic operating system library. The invention can prevent redundant storage.

Description

technical field [0001] The invention relates to the technical field of operating systems, in particular to a method, device and system for calling an operating system library. Background technique [0002] The function of the operating system (Operating System, referred to as OS) can be provided to the application in the form of a library (Library, referred to as LIB), and the function of the operating system provided to the application in the form of a library can be called an operating system library. When a program needs a certain function of the OS, it only needs to call the corresponding operating system library. [0003] There is a method for calling the operating system library, which includes: compiling the operating system library and the application program into an application program executable file, and then loading the application program executable file into the memory to run. When multiple applications running at the same time call When the same operating sys...

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/445G06F9/448
CPCG06F9/445
Inventor 唐继元王金堂
Owner HUAWEI TECH CO LTD
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