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

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 embodiment of the present invention provides a method, device and system for calling the operating system library

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

Embodiment 1

[0114] The embodiment of the present invention provides a method for calling the operating system library, 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 application executable file. Optionally, the execution domain may further include at least one of memory, external storage, network interface, and IO device.

[0117]The memory access address of the application executable file is an address where the application executable file is 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 domain can receive the ...

Embodiment 2

[0126] The embodiment of the present invention provides a method for invoking an operating system library, 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 application executable file.

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

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

[0130] Optionally, the execution domain may further 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 an address where the application executable file is stored in the memory of the executi...

Embodiment 3

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

[0137] Step 301: the management domain receives an instruction to open an application executable file.

[0138] Specifically, the executable file of the application program may be compiled from the compilation information of the application program and the 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 executable file of the application program, 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 enabling in...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products