A system configuration processing method and related equipment

Directly accessing system configuration items in the microkernel architecture through the shared memory mechanism solves the problem of low access efficiency of user processes in the microkernel architecture and achieves efficient and secure system configuration management.

CN115878210BActive Publication Date: 2024-08-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111152830.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-08-27
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

In the microkernel architecture, user processes' access to system configuration items requires multiple IPC communications, resulting in low efficiency. Existing technologies rely on independent pseudo file systems or KV processes for centralized management, which increases complexity and security risks.

Method used

Through the shared memory mechanism, the user process directly obtains the access interface information of the system service process, achieving direct access to the system configuration items, avoiding multiple IPC communications, and the system service process manages and authenticates its configuration items by itself, improving access efficiency and Security.

Benefits of technology

It significantly improves the efficiency of user processes accessing system configuration items, simplifies system configuration management, enhances security isolation, and reduces dependence on intermediate service processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115878210B
    Figure CN115878210B
Patent Text Reader

Abstract

The embodiment of the present application discloses a system configuration method, which can be applied to a microkernel architecture. The method of the embodiment of the present application includes: a user process can determine the first access interface information of a first system configuration item through a first shared memory, and transmit a first request to a first system service process through the first access interface information, thereby realizing the user's first access operation to the first system configuration item. Compared with the multiple IPC communications brought about by using an independent pseudo-file system, or other services for centralized management (such as a key-value KV process, or using a certain system service for centralized management), the user process can directly perform a first access operation on the first system configuration item, thereby improving the efficiency of the user process's first access operation on the first system configuration item.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a system configuration processing method and related equipment. Background Art

[0002] At present, the operating system architecture in the industry is mainly divided into microkernel architecture and macrokernel architecture. The characteristics of microkernel architecture (QNX, SEL4, fuchsia, etc.) are that the kernel itself is very small, and many system service functions (such as file system, memory management, network, driver, etc.) are run in user mode as separate service processes (hereinafter referred to as system services), and only key functions {such as interrupt processing, timer function, inter-process communication (IPC), memory mapping, etc.} are retained in kernel mode. Access between system services is handled by IPC.

[0003] At present, in scenarios based on the Linux kernel, Linux uses a pseudo file system (procfs / sysfs, etc.) as the control plane interface of the kernel to provide system configuration management, and has been widely used by upper-level applications and tools. In these scenarios, if a microkernel is to be used to replace the Linux kernel, in order to be compatible with existing applications and tools, the microkernel must also provide a consistent procfs / sysfs interface to access system configuration items. Among them, the pseudo file system is an independent service and belongs to a different process in user mode with other system services. User programs access system configuration items through procfs / sysfs file operations. For operations on procfs / sysfs files, first IPC is sent to the procfs / syfs service process for processing. After the procfs / sysfs service process performs file-related parsing and necessary security authentication, it is sent to the specific system service for processing again through IPC.

[0004] However, in the above-mentioned system configuration management technology, access to system configuration items requires multiple IPC communications between the procfs / sysfs service process and the system service process. Summary of the invention

[0005] The embodiment of the present application provides a system configuration processing method and related devices, which can improve the access efficiency of user processes to system configuration items.

[0006] The first aspect of the embodiment of the present application provides a system configuration processing method, which can be applied to a microkernel architecture. The method includes: a user process obtains a first request, the first request is used for the user process to perform a first access operation on a first system configuration item provided by a first system service process; the user process determines the first access interface information of the first system configuration item through a first shared memory, the first shared memory has a mapping relationship with the virtual address space of the user process and the first system service process respectively, and the first access interface information is used for the user process to communicate with the first system service process; the user process transmits a first request to the first system service process through the first access interface information, so that the first system service process responds to the first request and uses the function corresponding to the first system configuration item to perform the first access operation. Among them, the first system configuration item is at least one configuration item among the multiple system configuration items provided by the first system service process, and the first system configuration item can be understood as a control interface provided to the outside by the first system service process. Both the user process and the first system service process are in the user state in the microkernel architecture.

[0007] In the embodiment of the present application, the user process can determine the first access interface information of the first system configuration item through the first shared memory, and transmit the first request to the first system service process through the first access interface information, thereby realizing the user's first access operation to the first system configuration item. Compared with the multiple IPC communications brought about by using an independent pseudo file system, or other services for centralized management (such as key-value (KV) processes, or using a certain system service for centralized management), the user process can directly perform the first access operation on the first system configuration item, thereby improving the efficiency of the user process's first access operation on the first system configuration item.

[0008] Optionally, in a possible implementation of the first aspect, the first system service process includes: at least one service process of process management, memory management, file system management, driver management, and network management. It is understandable that memory management and file system management can also be the same service process, or it is understood that the service process supports memory management and file system management.

[0009] In this possible implementation, the functions of the first system service process can be implemented in multiple ways, so that the user process can perform various access operations on system service processes with multiple functions.

[0010] Optionally, in a possible implementation of the first aspect, the above steps: the user process determines the first access interface information of the first system configuration item through the first shared memory, including: the user process obtains the data storage structure through the first shared memory, the data storage structure is used to store entry information created by the first system service process, the entry information includes the identifier of the first system configuration item and the first access interface information of the first system configuration item; the user process determines the first access interface information through the first request and the data storage structure.

[0011] In this possible implementation, the user process can directly determine the first access interface information by querying the data storage structure through the first shared memory. Then, the first access operation is performed through the first access interface information. Compared with multiple IPC communications in the prior art, the user process can directly perform the first access operation on the first system configuration item, thereby improving the efficiency of the user process's first access operation on the first system configuration item.

[0012] Optionally, in a possible implementation of the first aspect, the above steps: the user process obtains the data storage structure through the first shared memory, including: if the first access operation is a file operation, the user process queries the data storage structure by calling the file system interface, and the first access operation includes an open, read, write or close operation.

[0013] In this possible implementation, the user process can query the data storage structure by calling the file system interface, so that the method can be compatible with the file system interface.

[0014] Optionally, in a possible implementation of the first aspect, the above step: the user process obtains the data storage structure through the first shared memory, including: if the first access operation is a database operation, the user process queries the data storage structure through a database, the database form includes a key value KV or a tree, and the first access operation includes setting or obtaining.

[0015] In this possible implementation, the user process can query the data storage structure in a manner of querying the database, so that the method is compatible with the query method of the database.

[0016] Optionally, in a possible implementation of the first aspect, the above steps also include: the user process obtains a second request, the second request is used by the user process to perform a second access operation on the second system configuration item of the second system service process; the user process determines the second access interface information of the second system configuration item through the second shared memory, the second shared memory is mapped to the virtual address space of the user process and the second system service process, and the second shared memory is different from the first shared memory; the user process transmits the second request to the second system service process through the second access interface information, so that the second system service process responds to the second request and uses the function corresponding to the second system configuration item to perform the second access operation. Furthermore, processes other than the first system service process can only read-only map and access the first shared memory. Processes other than the second system service process can only read-only map and access the second shared memory.

[0017] In this possible implementation, the first system service process and the second system service process each manage their own shared memory area, and manage the system configuration items that they can support on their own shared memory area. All other modules can only read-only map and access the shared memory. This self-management method has better security isolation.

[0018] The second aspect of the embodiment of the present application provides a system configuration processing method, which can be applied to a microkernel architecture. The method includes: a first system service process applies for a first shared memory from a microkernel operating system, and the first shared memory has a mapping relationship with the virtual address space of a user process and a first system service process respectively; the first system service process manages a first system configuration item in the first shared memory; the first system service process receives a first request transmitted by a user process, and the first request is used by the user process to perform a first access operation on the first system configuration item of the first system service process; the first system service process responds to the first request and uses the function corresponding to the first system configuration item to perform the first access operation.

[0019] In the embodiments of the present application, each system service manages its own shared memory area, and manages the system configuration items that it can support in its own shared memory area. The user process can access and process the system configuration items in the system service process by querying the data storage structure on the shared memory. Compared with the prior art that uses multiple IPC communications of independent intermediate service processes (such as a pseudo file system or KV process, etc.), the user process can directly access the system configuration items, thereby improving the access efficiency of the user process to the system configuration items.

[0020] Optionally, in a possible implementation of the second aspect, the first system service process includes at least one service process of process management, memory management, file system management, driver management, and network management. It is understandable that memory management and file system management may also be the same service process, or it is understood that the service process supports memory management and file system management.

[0021] In this possible implementation, the functions of the first system service process can be implemented in multiple ways, so that the user process can perform various access operations on system service processes with multiple functions.

[0022] Optionally, in a possible implementation of the second aspect, the above steps: the first system service process manages the first system configuration item in the first shared memory, including: the first system service process creates entry information corresponding to the first system configuration item in the first shared memory, the entry information including an identifier of the first system configuration item and first access interface information of the first system configuration item; the first system service process adds the entry information in the data storage structure.

[0023] In this possible implementation, the first system service process can create entry information corresponding to the first system configuration item in the first shared memory, so that the subsequent user process can directly determine the first access interface information in the entry information by querying the data storage structure in the first shared memory. Then, the first access operation is performed through the first access interface information. On the one hand, compared with multiple IPC communications in the prior art, the user process can directly perform the first access operation on the first system configuration item, thereby improving the efficiency of the user process's first access operation on the first system configuration item. On the other hand, the first system service process can directly add entries to the shared memory without having to go to the pseudo file system or other centrally managed processes to create configuration items, thereby improving the efficiency of creating system configuration items.

[0024] Optionally, in a possible implementation manner of the second aspect, the above step: the first system service process responds to the first request, includes: if the first request authentication is successful, the first system service process responds to the read and write request.

[0025] In this possible implementation, the process is authenticated before responding to the first request, so that a user process without access rights cannot access the first system configuration item, thereby reducing the risk of the first system configuration item being tampered with.

[0026] Optionally, in a possible implementation manner of the second aspect, the authentication of the first request is performed in a first system service process.

[0027] In this possible implementation, the first system service process also authenticates the configuration items provided by itself. This self-management method has better security isolation.

[0028] A third aspect of an embodiment of the present application provides a system configuration processing method, which can be applied to an electronic device, the method comprising: obtaining a first request, the first request being used to instruct a first process to access a system configuration item in a second process by querying a data storage structure on a shared memory, the first process being an application in user mode, the second process being a system program in user mode, the shared memory being mapped to the virtual address space of the first process and the second process, respectively, the data storage structure comprising an identifier of the system configuration item and interface information with the identifier of the system configuration item, the interface information being used for the first process to communicate with the second process; in response to the first request, the electronic device performing access processing using a function corresponding to the system configuration item through the second process.

[0029] In an embodiment of the present application, a user can access and process system configuration items in a system service process by querying a data storage structure on a shared memory. Compared with the prior art that uses multiple IPC communications using an independent intermediate service process (such as a pseudo file system or a KV process, etc.), a user can directly access the system configuration items, thereby improving the user's access efficiency to the system configuration items.

[0030] A fourth aspect of the present application provides an electronic device that adopts a microkernel architecture, and includes: an acquisition unit, used to acquire a first request, the first request being used by a user process to perform a first access operation on a first system configuration item provided by a first system service process; a determination unit, used to determine first access interface information of the first system configuration item through a first shared memory, the first shared memory having a mapping relationship with the virtual address space of the user process and the first system service process, respectively, and the first access interface information being used for the user process to communicate with the first system service process; a transmission unit, used to transmit the first request to the first system service process through the first access interface information, so that the first system service process responds to the first request and uses the function corresponding to the first system configuration item to perform the first access operation.

[0031] Optionally, in a possible implementation manner of the fourth aspect, the above-mentioned first system service process includes: at least one service process of process management, memory management, file system management, driver management, and network management.

[0032] Optionally, in a possible implementation of the fourth aspect, the above-mentioned determination unit is specifically used to obtain a data storage structure through a first shared memory, the data storage structure is used to store entry information created by a first system service process, the entry information including an identifier of a first system configuration item and first access interface information of the first system configuration item; the determination unit is specifically used to determine the first access interface information through a first request and the data storage structure.

[0033] Optionally, in a possible implementation of the fourth aspect, the above-mentioned determination unit is specifically used to, if the first access operation is a file operation, the user process queries the data storage structure by calling the file system, and the first access operation includes an open, read, write or close operation.

[0034] Optionally, in a possible implementation of the fourth aspect, the above-mentioned determination unit is specifically used to query the data storage structure through a database if the first access operation is a database operation, and the database form includes a key value KV or a tree, and the first access operation includes setting or obtaining.

[0035] Optionally, in a possible implementation of the fourth aspect, the above-mentioned acquisition unit is also used to obtain a second request, and the second request is used for the user process to perform a second access operation on the second system configuration item of the second system service process; the determination unit is also used to determine the second access interface information of the second system configuration item through the second shared memory, the second shared memory is mapped to the virtual address space of the user process and the second system service process, and the second shared memory is different from the first shared memory; the transmission unit is also used to transmit the second request to the second system service process through the second access interface information, so that the second system service process responds to the second request and uses the function corresponding to the second system configuration item to perform the second access operation.

[0036] The fifth aspect of the present application provides an electronic device, which adopts a microkernel architecture and includes: an application unit, which is used to apply for a first shared memory from the microkernel operating system, and the first shared memory has a mapping relationship with the virtual address space of the user process and the first system service process respectively; a management unit, which is used to manage the first system configuration item in the first shared memory; a receiving unit, which is used to receive a first request transmitted by the user process, and the first request is used for the user process to perform a first access operation on the first system configuration item of the first system service process; an execution unit, which is used to respond to the first request and use the function corresponding to the first system configuration item to perform the first access operation.

[0037] Optionally, in a possible implementation manner of the fifth aspect, the above-mentioned first system service process includes: at least one service process of process management, memory management, file system management, driver management, and network management.

[0038] Optionally, in a possible implementation of the fifth aspect, the above-mentioned management unit is specifically used to create entry information corresponding to the first system configuration item in the first shared memory, the entry information including the identifier of the first system configuration item and the first access interface information of the first system configuration item; the management unit is specifically used to add entry information in the data storage structure.

[0039] Optionally, in a possible implementation manner of the fifth aspect, the above-mentioned execution unit is specifically used to, if the first request authentication is successful, the first system service process responds to the read and write request.

[0040] Optionally, in a possible implementation manner of the fifth aspect, the authentication of the first request is performed in the first system service process.

[0041] A sixth aspect of the present application provides an electronic device, which includes: an acquisition unit, used to acquire a first request, the first request is used to instruct a first process to access and process a system configuration item in a second process by querying a data storage structure on a shared memory, the first process is an application in user mode, the second process is a system program in user mode, the shared memory has a mapping relationship with the virtual address space of the first process and the second process, respectively, the data storage structure includes an identifier of the system configuration item and interface information with the identifier of the system configuration item, and the interface information is used for the first process to communicate with the second process; an execution unit, used to respond to the first request, and the electronic device uses the function corresponding to the system configuration item to perform access processing through the second process.

[0042] The seventh aspect of the present application provides an electronic device, which executes the method in the first aspect or any possible implementation of the first aspect, or executes the method in the second aspect or any possible implementation of the second aspect, or executes the method in the third aspect or any possible implementation of the third aspect.

[0043] In an eighth aspect of the present application, there is provided an electronic device, comprising: a processor, the processor being coupled to a memory, the memory being used to store programs or instructions, and when the programs or instructions are executed by the processor, the electronic device implements the method of the first aspect or any possible implementation of the first aspect, or the electronic device implements the method of the second aspect or any possible implementation of the second aspect, or the electronic device implements the third aspect or any possible implementation of the third aspect.

[0044] The ninth aspect of the present application provides a microkernel architecture, which includes a user process as in the aforementioned first aspect or any possible implementation of the first aspect, and / or a first system service process as in the second aspect or any possible implementation of the second aspect.

[0045] The tenth aspect of the present application provides a computer-readable medium having a computer program or instruction stored thereon. When the computer program or instruction is executed on a computer, the computer executes the method in the first aspect or any possible implementation of the first aspect, or the computer executes the method in the second aspect or any possible implementation of the second aspect, or the computer executes the method in the third aspect or any possible implementation of the third aspect.

[0046] In the eleventh aspect of the present application, a computer program product is provided. When the computer program product is executed on a computer, the computer executes the method in the aforementioned first aspect or any possible implementation of the first aspect, the second aspect or any possible implementation of the second aspect, and the third aspect or any possible implementation of the third aspect.

[0047] Among them, the technical effects brought about by the fourth, seventh, eighth, ninth, and tenth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the first aspect or different possible implementation methods of the first aspect, and will not be repeated here.

[0048] Among them, the technical effects brought about by the fifth, seventh, eighth, ninth, and tenth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the second aspect or different possible implementation methods of the second aspect, and will not be repeated here.

[0049] Among them, the technical effects brought about by the sixth, seventh, eighth, and tenth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the third aspect or different possible implementation methods of the third aspect, and will not be repeated here.

[0050] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages: the user process can determine the first access interface information of the first system configuration item through the first shared memory, and transmit the first request to the first system service process through the first access interface information, thereby realizing the user's first access operation to the first system configuration item. Compared with the prior art using multiple IPC communications of an independent pseudo file system, the user process can directly perform the first access operation on the first system configuration item, thereby improving the efficiency of the user process's first access operation on the first system configuration item. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A schematic diagram of the structure of a microkernel architecture provided by an embodiment of the present invention;

[0052] Figure 2 It is a structural diagram of an existing microkernel architecture;

[0053] Figure 3It is a structural diagram of another existing microkernel architecture;

[0054] Figure 4 A schematic diagram of the structure of a microkernel architecture provided in an embodiment of the present application;

[0055] Figure 5 A schematic diagram of a shared memory mapping principle provided in an embodiment of the present application;

[0056] Figure 6 A flowchart of a system configuration processing method provided in an embodiment of the present application;

[0057] Figure 7 A schematic diagram of the structure of another microkernel architecture provided in an embodiment of the present application;

[0058] Figure 8 Another flowchart of the system configuration processing method provided in an embodiment of the present application;

[0059] Figures 9 to 12 Several structural schematic diagrams of electronic devices provided in embodiments of the present application. DETAILED DESCRIPTION

[0060] The embodiment of the present application provides a system configuration processing method and related devices, which can improve the access efficiency of user processes to system configuration items.

[0061] The embodiments of the present application are described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, not all of the embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" refers to two or more than two.

[0062] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0063] In order to facilitate understanding of the technical solution provided by this application, some concepts are introduced below.

[0064] 1. Microkernel and Macrokernel

[0065] Microkernel: An operating system kernel architecture, represented by QNX, L4, Fuchsia, etc., which realizes the "miniaturization" of the kernel itself by running most system services in user mode as independent processes.

[0066] Macro kernel: An operating system kernel architecture, represented by Linux, Unix, etc., which realizes a large and comprehensive "grand" kernel by concentrating all system service functions in the kernel.

[0067] 2. Programs and processes

[0068] A program is a collection of instructions and data, which can be saved as a target file on a disk or stored as a segment in a memory address space. A process refers to the running entity of a program. In other words, a program is a description of instructions, data, and their organizational form, and a process is the running entity of a program. Multiple threads can run concurrently in a process, and each thread executes different tasks in parallel. A thread can be the actual operating unit of a process, but the embodiments of the present application do not make a clear distinction between threads and processes, and processes are used instead in the description process.

[0069] System program refers to a system that controls and coordinates computer equipment and external devices and supports the development and operation of application software. It is a collection of various programs that do not require user intervention.

[0070] Application programs correspond to system software. They are various programming languages ​​that users can use, as well as a collection of programs compiled in various programming languages. They are divided into application software packages and user programs.

[0071] 3. File System

[0072] The file system is a collection of software in the operating system that manages computer software resources in the form of files, and the files and data structures (such as directories and index tables, etc.) that are managed. From the system's perspective, the file system organizes, allocates, and reclaims the storage space of the file storage device, and is responsible for the storage, retrieval, sharing, and protection of files. From the user's perspective, the file system mainly implements "access by name". As long as the user of the file system knows the file name of the required file, he can access the information in the file without knowing where these files are stored.

[0073] First, the architecture of the microkernel is described, such as Figure 1 As shown, in the microkernel architecture, applications and system programs run in user mode as independent processes, and the microkernel runs in kernel mode.

[0074] First, the kernel state and user state are explained. Kernel state and user state are two working states of the central processing unit (CPU). If a process executes a system call and executes kernel code, the process is said to be in kernel state; if a process executes user code, the process is said to be in user state. Kernel state can also be called privileged state, and user state can also be called non-privileged state. The following will uniformly use kernel state and user state for explanation.

[0075] Specifically, in the ARM architecture, EL0 is used to represent the user state, and EL1 is used to represent the kernel state; while in the X86 architecture, ring3 is used to represent the user state, and ring0 is used to represent the kernel state.

[0076] A microkernel is a kernel that only completes the functions that the kernel must complete, including clock interrupts, process creation and destruction, process scheduling, and inter-process communication, while other functions such as file systems, memory management, and device drivers are placed in the user space as system processes. In other words, the microkernel is relative to the macro kernel. Linux is a typical macro kernel. In addition to clock interrupts, process creation and destruction, process scheduling, and inter-process communication, other file systems, memory management, input and output, and device driver management all need to be completed by the kernel. In other words, the microkernel is responsible for the most core functions, and other functions are added in the form of plug-ins through independent user-mode processes. Then the microkernel is responsible for process management, scheduling, and inter-process communication, thereby completing the functions required by the entire kernel. Basically, if there is a problem with one function, but the function exists in the form of an independent process, it will not have any impact on other processes, causing the kernel to be unavailable. At most, a certain function of the kernel is now unavailable.

[0077] At present, the interaction between user processes and system processes requires the introduction of an intermediate service process (such as a pseudo file system process or a key value process), through which system configuration management is provided to the user process. The intermediate service process is an independent centralized management service process and is in a different process from other system services. The following describes two situations of the intermediate service process:

[0078] First, the intermediate service process is a pseudo file system process.

[0079] This method can also be understood as system configuration management through a pseudo file system process. For example, the creation, deletion, and read and write processing of procfs / sysfs files are all parsed by the pseudo file system process, and then interact with each system service process (such as the first system service process and the second system service process), and then finally processed by each system service process. This method can solve the compatibility problem of procfs / sysfs, but the access to system configuration items requires multiple IPC communications between the pseudo file system process and the first system service process when the user process accesses the first system service process.

[0080] For example, see Figure 2 Taking the user process accessing the system configuration item A in the first system service process through the pseudo file system process as an example, the user program accesses the system configuration item through the procfs / sysfs file operation. The operation of the procfs / sysfs file is first processed by IPC to the pseudo file system process. After the pseudo file system process performs file-related analysis and file operation authentication, it is sent to the first system service process again through IPC to implement the operation of the A processing function.

[0081] The second type is that the intermediate service process is a key-value (KV) process.

[0082] The KV process provides system configuration management to the user process, or it can be understood that the KV process provides a non-file system access interface to the user process. Similar to the first method above, the user process's access to the first system service process requires multiple IPC communications between the KV process and the first system service process.

[0083] For example, see Figure 3 , taking the user process accessing the system configuration item A in the first system service process through the KV process as an example, Figure 2 Similarly, the access of the user process to the first system service process requires multiple IPC communications between the KV process and the first system service process.

[0084] It can be seen that in the above two methods, the access of the user process to the first system service process requires multiple IPC communications between the intermediate service process and the first system service process.

[0085] In order to solve the above problems, the present application provides a microkernel architecture and a system configuration processing method. The user process can access and process the system configuration items in the system service process by querying the configuration item information on the shared memory. Compared with the prior art that uses multiple IPC communications with an independent pseudo file system, the user process can directly access the system configuration items, thereby improving the access efficiency of the user process to the system configuration items.

[0086] See also Figure 4 , an embodiment of the present application provides a microkernel architecture, which includes a user state and a kernel state, wherein the user process, the first system service process and the second system service process are in the user state, and the microkernel is in the kernel state.

[0087] The first system service process and the second system service process may be understood as service processes that provide system configuration, and the system configuration item refers to a control interface provided externally by the system service process.

[0088] The first system service process is used to apply for the shared memory of SHM1 (i.e., the first shared memory) from the microkernel operating system, and the shared memory of SHM1 includes shared memory 1 and shared memory 2. It is also used to manage the system configuration item A and system configuration item B supported by the first system service process in shared memory 1 and shared memory 2. It is also used to process the system configuration item A through the A processing function, and it is also used to process the system configuration item B through the B processing function. In addition, shared memory 1 and shared memory 2 have a mapping relationship with the virtual address space of the user process and the first system service process respectively. Shared memory 1 stores the access interface information of system configuration item A, and shared memory 2 stores the access interface information of system configuration item B. Shared memory 1 and shared memory 2 can also be understood as different management units on the first shared memory.

[0089] The second system service process is used to apply for the shared memory of SHM2 (i.e., the second shared memory) from the microkernel operating system, and the shared memory of SHM2 includes shared memory 3 and shared memory 4. It is also used to manage the system configuration item C and system configuration item D supported by the second system service process in shared memory 3 and shared memory 4. It is also used to process the system configuration item C through the C processing function, and it is also used to process the system configuration item D through the D processing function. In addition, shared memory 3 and shared memory 4 have a mapping relationship with the virtual address space of the user process and the second system service process respectively. Shared memory 3 stores the access interface information of system configuration item C, and shared memory 4 stores the access interface information of system configuration item D. Shared memory 3 and shared memory 4 can also be understood as different management units on the second shared memory.

[0090] The user process is used to receive user access requests to system configuration items. It is also used to process system configuration items A and B through shared memory 1 and shared memory 2 (for example, read and write processing, etc.). It is also used to process system configuration items C and D through shared memory 3 and shared memory 4 (for example, read and write processing, etc.).

[0091] To understand the shared memory (SHM) mapping principle, please refer to Figure 5 Taking the shared memory of the user process and the first system service process as an example, the user process maps the first virtual address in the virtual address space of the user process to the first shared memory in the physical memory of the microkernel through page table 1. The first system service process maps the second virtual address in the virtual address space of the first system service process to the first shared memory in the physical memory of the microkernel through page table 2. That is, the same block of physical memory is mapped to the respective virtual address spaces of the user process and the first system service process for communication.

[0092] Optionally, other processes except the first system service process can only read-only map and access the first shared memory. Other processes except the second system service process can only read-only map and access the second shared memory.

[0093] Optionally, the first system service process is further used to authenticate the processing operation process of system configuration item A. After the authentication is passed, the A processing function is used to execute the user process's processing of system configuration item A. It is also used to authenticate the processing operation process of system configuration item B. After the authentication is passed, the B processing function is used to execute the user process's processing of system configuration item B, and the processing result is returned to the user process. The second system service process is also used to authenticate the processing operation process of system configuration item C. After the authentication is passed, the C processing function is used to execute the user process's processing of system configuration item C. It is also used to authenticate the processing operation process of system configuration item D. After the authentication is passed, the D processing function is used to execute the user process's processing of system configuration item D, and the processing result is returned to the user process.

[0094] Optionally, the user process can provide a client library, and use the client library to encapsulate the shared memory mapping, that is, encapsulate the shared memory mapping into an interface, and the user process can implement the shared memory mapping by calling the interface.

[0095] Furthermore, the user process can also use the client library to encapsulate the shared memory mapping and query configuration items. That is, the shared memory mapping and query configuration items are encapsulated into an interface, and the user process can directly determine the access interface information by calling the interface, and then pass the access operation request to the system service process to which the configuration item belongs.

[0096] In addition, when users access system configuration items, they can select an interface that is compatible with the file system. In other words, the corresponding interface can be provided based on the configuration item query.

[0097] For example, Figure 4 As shown in the figure, if the user needs to provide a file system interface compatible with procfs / sysfs, the fslib interface can be connected to the configuration item query interface.

[0098] The microkernel architecture in the embodiment of the present application may include a larger number of user processes, system service processes, and processing functions. The embodiment of the present application only describes the microkernel architecture as including one user process, two system service processes, and four processing functions. The number of user processes, the number of system service processes, the number of system configuration items supported by the system service processes, the number of processing functions, etc. are not specifically limited here.

[0099] Among them, the microkernel architecture provided in the embodiments of the present application can be applied to platforms of various architectures such as Intel architecture, ARM architecture and AARCH64 architecture.

[0100] contrast Figure 2 / Figure 3 and Figure 4 It can be seen that the microkernel architecture provided by the embodiment of the present application, on the one hand, the user process can access and process the system configuration items in the system service process by querying the configuration item information on the shared memory. Compared with the prior art using multiple IPC communications of independent intermediate service processes (such as pseudo file systems or KV processes, etc.), the user process can directly access the system configuration items, thereby improving the access efficiency of the user process to the system configuration items. On the other hand, each system service manages its own shared memory area, and manages the system configuration items that it can support on its own shared memory area. All other modules can only read-only map and access the shared memory, and the configuration items provided by themselves are also authenticated by the service itself. This self-management method has better security isolation.

[0101] The following is combined with the above Figure 4 The microkernel architecture and accompanying drawings provide a detailed introduction to the system configuration processing method of the embodiment of the present application.

[0102] See also Figure 6 An embodiment of a system configuration processing method provided in an embodiment of the present application can be applied to electronic devices or components of electronic devices (such as processors, chips, or chip systems, etc.). The embodiment includes steps 601 to 606.

[0103] In the embodiment of the present application, the electronic device may be a terminal device for serving users, or a cloud device. The terminal device may include a head mounted display device (HMD), the head mounted display device may be a combination of a virtual reality (VR) box and a terminal, a VR all-in-one machine, a personal computer (PC), an augmented reality (AR) device, a mixed reality (MR) device, etc. The terminal device may also include a cellular phone, a smart phone, a personal digital assistant (PDA), a tablet computer, a laptop computer, a personal computer (PC), a vehicle-mounted terminal, etc., which are not specifically limited here.

[0104] Step 601: A first system service process applies for a first shared memory from a microkernel operating system.

[0105] The first system service process can apply for the first shared memory from the microkernel operating system, and map the first shared memory allocated by the microkernel operating system to the virtual address space of the first system service process. In addition, the first shared memory also has a mapping relationship with the virtual address space of the user process. For a detailed description, please refer to the aforementioned Figure 5 The description of the corresponding embodiments will not be repeated here.

[0106] Step 602: The first system service process manages the first system configuration item in the first shared memory.

[0107] After the first system service process maps the first shared memory to the virtual address space of the first system service process, the first system configuration item can be managed in the first shared memory.

[0108] Optionally, the first system service process initializes a data storage structure on the first shared memory, and creates entry information corresponding to a first system configuration item supported by the first system service process in the first shared memory, the entry information including an identifier of the first system configuration item and first access interface information of the first system configuration item. The first access interface information is used for the user process to communicate with the first system service process.

[0109] Optionally, the first access interface information includes the name of the first system configuration item, the name of the process to which the first system configuration item belongs, and an interface identifier of the process.

[0110] It is understandable that the first system service process manages the first system configuration item by dynamically adding and / or deleting entry information in the data storage structure, or by using an encapsulation interface, which is not limited here. The encapsulation interface refers to encapsulating the application, initialization and mapping of the first shared memory. The first system service process can complete the initialization and mapping of the first shared memory and / or the data storage structure management method on the first shared memory by calling the interface. The first system service process can call the interface to conveniently add and / or delete entry information.

[0111] In the embodiment of the present application, the first system configuration item is a system configuration item accessible to the user, and the first system service process may include at least one of: a file system, memory management, network management, or driver management, etc., which is not specifically limited here. The first system configuration item is at least one system configuration item among multiple system configuration items provided by the first system service process.

[0112] Step 603: The user process obtains the first request.

[0113] The user process obtains a first request from a user, and the first request is used by the user process to perform a first access operation on a first system configuration item of a first system service process. The user may refer to a developer, a maintenance staff, etc., and is not specifically limited here.

[0114] The first access operation in the embodiment of the present application may include: open, read, write, close, set, get and other operations, which are not specifically limited here.

[0115] Exemplarily, the first request may be read(" / proc / pidxx / status") or get("pidxx_status").

[0116] Step 604: The user process determines first access interface information of the first system configuration item through the first shared memory.

[0117] The user process obtains a data storage structure through the first shared memory, and the data storage structure stores the entry information created by the first system service process in the aforementioned step 602. The data storage structure can be in the form of a file system or a database (such as a key value KV or a tree, etc.), which is not specifically limited here.

[0118] Wherein, if the first access operation in the first request is a file operation, the user process can query the data storage structure by calling the file system LIB. If the first access operation in the first request is a database operation, the user process can query the data storage structure by database mode. File operations include at least one of operations such as open, read, write, and close. Database operations include at least one of operations such as set and get.

[0119] For example, see Figure 7 , Figure 7 It can be understood that Figure 4 In the illustrated microkernel architecture, a system configuration processing method is described by taking the first system configuration item as system configuration item A and the function corresponding to system configuration item A as A processing function as an example. Figure 7 The configuration item query in can be understood as querying the first access interface information in the data storage structure. The system interface (Sysif) can be understood as the interface identifier of the first access interface information.

[0120] The user process can determine the first access interface information through the first request and the data storage structure. The first access interface information is used for the user process to communicate with the first system service process. The description of the first access interface information can be specifically referred to the above step 603, which will not be repeated here.

[0121] Optionally, the user process determines the first system configuration item (for example, system configuration item A) in the first request, and determines that the first access operation in the first request is a file operation. The user process first calls the file system LIB, queries the entry information stored in the file system LIB area, and then determines the first access interface information based on system configuration item A.

[0122] Step 605: The user process transmits a first request to the first system service process through the first access interface information.

[0123] After determining the first access interface information, the user process may transmit the first request to the first system service process through the first access interface information.

[0124] Step 606: The first system service process responds to the first request and uses the function corresponding to the first system configuration item to perform the first access operation.

[0125] After receiving the first request transmitted by the user process, the first system service process may respond to the first request and perform the first access operation using the function corresponding to the first system configuration item.

[0126] Exemplarily, if the function corresponding to the system configuration item A is the A processing function, the first system service process uses the A processing function to perform the first access operation.

[0127] After the first system service process uses the function to execute the first access operation, the processing result may be returned to the user process.

[0128] Exemplarily, if the first access operation is a read-write operation, after the first system service process uses the function to execute the first access operation, the read-write result may be returned to the user process.

[0129] Optionally, after receiving the processing result, the user process may display the processing result to the user.

[0130] Optionally, the execution of this step is conditionally constrained, that is, the first system service process can authenticate the first access operation process of the first system configuration item. If the authentication is successful, the first system service process will respond to the first request and use the function corresponding to the first system configuration item to perform the first access operation. Authentication can be understood as determining whether the user process has the right to perform the first access operation on the first system configuration item in the first system service process.

[0131] In the embodiment of the present application, the specific method of authentication is not limited. Specifically, the user process, the first system configuration item and the first access operation are matched in the security policy. If the match is successful, it means that the authentication is successful. The security policy can be understood as a security rule, which can be set by the user or by default. The above authentication can also be understood as judging whether the first access operation performed by the user process on the first system configuration item complies with the security policy.

[0132] Of course, the user process can also perform access processing on the second system configuration item in the second system service process, that is, the user process obtains a second request, and the second request is used for the user process to perform a second access processing on the second system configuration item of the second system service process. The user process determines the second access interface information of the second system configuration item through the second shared memory, and the second shared memory is mapped to the virtual address space of the user process and the second system service process, and the second shared memory is different from the first shared memory. The user process transmits the second request to the second system service process through the second access interface information, and the second system service process responds to the second request and uses the function corresponding to the second system configuration item to perform the second access processing. The description therein is similar to the case where the user process performs access processing on the first system configuration item in the first system service process, and will not be repeated here.

[0133] In the embodiment of the present application, on the one hand, the user process can access and process the system configuration items in the system service process by querying the data storage structure on the shared memory. Compared with the prior art using multiple IPC communications of independent intermediate service processes (such as pseudo file systems or KV processes, etc.), the user process can directly access the system configuration items, thereby improving the access efficiency of the user process to the system configuration items. On the other hand, each system service manages its own shared memory area, and manages the system configuration items that it can support on its own shared memory area. All other modules can only read-only map and access the shared memory, and the configuration items provided by themselves are also authenticated by the service itself. This self-management method has better security isolation.

[0134] See also Figure 8 Another embodiment of the system configuration processing method provided in an embodiment of the present application, the method can be applied to electronic devices, and can also be applied to components of electronic devices (such as processors, chips, or chip systems, etc.). The embodiment includes steps 801 and 802.

[0135] Step 801, obtaining a first request.

[0136] In this embodiment, the first request may be preset or input by a user. The first request is used to instruct the first process to access the system configuration item in the second process by querying the data storage structure on the shared memory. The first process is an application program in the user state, and the second process is a system program in the user state. The shared memory is mapped to the virtual address space of the first process and the second process respectively. The data storage structure includes the identifier of the system configuration item and the interface information with the identifier of the system configuration item. The interface information is used for the first process to communicate with the second process.

[0137] The description of the first request, the first process, the second process, the shared memory, etc. can refer to the aforementioned Figure 6 The description of the first request, the user process, the first system service process, the first shared memory, etc. in the illustrated embodiment will not be repeated here.

[0138] Step 802: In response to the first request, the electronic device performs access processing using a function corresponding to the system configuration item through a second process.

[0139] After receiving the first request transmitted by the first process, the second process in the electronic device can respond to the first request and perform access processing using the function corresponding to the system configuration item through the second process.

[0140] The above access processing and other descriptions can refer to the aforementioned Figure 6 The description of the first access processing, etc. in the illustrated embodiment will not be repeated here.

[0141] In the embodiment of the present application, on the one hand, the user can access the system configuration items in the system service process by querying the data storage structure on the shared memory. Compared with the prior art using multiple IPC communications of independent intermediate service processes (such as pseudo file systems or KV processes, etc.), the user can directly access the system configuration items, thereby improving the user's access efficiency to the system configuration items. On the other hand, each system service manages its own shared memory area, and manages the system configuration items it can support on its own shared memory area. All other modules can only read-only map and access the shared memory, and the configuration items provided by themselves are also authenticated by the service itself. This self-management method has better security isolation.

[0142] The system configuration processing method in the embodiment of the present application is described above. The electronic device in the embodiment of the present application is described below. Fig. 9 , an embodiment of the electronic device in the embodiment of the present application includes:

[0143] An acquiring unit 901 is configured to acquire a first request, where the first request is used by the user process to perform a first access operation on a first system configuration item provided by a first system service process;

[0144] A determining unit 902 is configured to determine first access interface information of the first system configuration item through a first shared memory, wherein the first shared memory is mapped to virtual address spaces of the user process and the first system service process, respectively, and the first access interface information is used for communication between the user process and the first system service process;

[0145] The transmitting unit 903 is used to transmit the first request to the first system service process through the first access interface information, so that the first system service process responds to the first request and uses the function corresponding to the first system configuration item to perform the first access operation.

[0146] In this embodiment, the operations performed by each unit in the electronic device are similar to those described above. Figures 4 to 8 The description in the illustrated embodiment is similar and will not be repeated here.

[0147] In this embodiment, the determining unit 902 can determine the first access interface information of the first system configuration item through the first shared memory, and the transmitting unit 903 transmits the first request to the first system service process through the first access interface information, thereby realizing the user's first access operation to the first system configuration item. Compared with the prior art using multiple IPC communications of an independent pseudo file system, the user process can directly perform the first access operation on the first system configuration item, thereby improving the efficiency of the user process's first access operation on the first system configuration item.

[0148] See also Fig.10 Another embodiment of the electronic device in the embodiment of the present application includes:

[0149] An application unit 1001 is used to apply for a first shared memory from a microkernel operating system, where the first shared memory is mapped to a virtual address space of a user process and a virtual address space of the first system service process respectively;

[0150] A management unit 1002, configured to manage a first system configuration item in the first shared memory;

[0151] A receiving unit 1003 is configured to receive a first request transmitted by the user process, where the first request is used by the user process to perform a first access operation on the first system configuration item of the first system service process;

[0152] The execution unit 1004 is used to respond to the first request and use the function corresponding to the first system configuration item to execute the first access operation.

[0153] In this embodiment, the operations performed by each unit in the electronic device are similar to those described above. Figures 4 to 8 The description in the illustrated embodiment is similar and will not be repeated here.

[0154] In this embodiment, the management unit 1002 of each system service process manages its own shared memory area, and manages the system configuration items that it can support in its own shared memory area. The user process can access and process the system configuration items in the system service process by querying the data storage structure on the shared memory. Compared with the prior art that uses multiple IPC communications of independent intermediate service processes (such as a pseudo file system or KV process, etc.), the user process can directly access the system configuration items, thereby improving the access efficiency of the user process to the system configuration items.

[0155] See also Fig.11 Another embodiment of the electronic device in the embodiment of the present application includes:

[0156] An acquisition unit 1101 is used to acquire a first request, where the first request is used to instruct a first process to access a system configuration item in a second process by querying a data storage structure in a shared memory, where the first process is an application in a user state, and the second process is a system program in the user state, where the shared memory is mapped to virtual address spaces of the first process and the second process, respectively, and where the data storage structure includes an identifier of the system configuration item and interface information with the identifier of the system configuration item, where the interface information is used for the first process to communicate with the second process;

[0157] The execution unit 1102 is used to respond to the first request, and the electronic device performs the access processing by using the function corresponding to the system configuration item through the second process.

[0158] In this embodiment, the operations performed by each unit in the electronic device are similar to those described above. Figures 4 to 8 The description in the illustrated embodiment is similar and will not be repeated here.

[0159] In this embodiment, the user can access and process the system configuration items in the system service process by querying the data storage structure on the shared memory. Compared with the prior art that uses multiple IPC communications of independent intermediate service processes (such as a pseudo file system or KV process, etc.), the user can directly access the system configuration items, thereby improving the user's access efficiency to the system configuration items.

[0160] See also Fig.12 , a schematic diagram of the structure of another electronic device provided by the present application. The electronic device may include a processor 1201, a memory 1202 and a communication interface 1203. The processor 1201, the memory 1202 and the communication interface 1203 are interconnected via a line. The memory 1202 stores program instructions and data.

[0161] The memory 1202 stores the aforementioned Figures 4 to 8 In the corresponding implementation manner shown, the steps executed by the electronic device correspond to program instructions and data.

[0162] Processor 1201, used to execute the above Figures 4 to 8 The steps shown in any of the embodiments shown are performed by an electronic device.

[0163] The communication interface 1203 can be used to receive and send data and to perform the aforementioned Figures 4 to 8 The steps related to obtaining, sending and receiving in any of the embodiments shown.

[0164] In one implementation, the electronic device may include Fig.12 More or fewer components are merely illustrative in this application and are not limiting.

[0165] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0166] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0167] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated units may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.

[0168] When the integrated unit is implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0169] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

Claims

1. A system configuration processing method, characterized in that: The method is applied to a microkernel architecture, and the method comprises: The user process obtains a first request, where the first request is used by the user process to perform a first access operation on a first system configuration item provided by the first system service process; The user process determines first access interface information of the first system configuration item through a first shared memory, the first shared memory is respectively mapped to the virtual address space of the user process and the first system service process, and the first access interface information is used for the user process to communicate with the first system service process; The user process transmits the first request to the first system service process through the first access interface information, so that the first system service process responds to the first request and uses the function corresponding to the first system configuration item to perform the first access operation; The user process determines the first access interface information of the first system configuration item through the first shared memory, including: The user process obtains a data storage structure through the first shared memory, where the data storage structure is used to store entry information created by the first system service process, where the entry information includes an identifier of the first system configuration item and the first access interface information of the first system configuration item; The user process determines the first access interface information through the first request and the data storage structure.

2. The method according to claim 1, characterized in that: The first system service process includes: at least one service process of process management, memory management, file system management, driver management, and network management.

3. The method according to claim 1, characterized in that The user process obtains the data storage structure through the first shared memory, including: If the first access operation is a file operation, the user process queries the data storage structure by calling a file system, and the first access operation includes an open, read, write or close operation.

4. The method according to claim 1, characterized in that: The user process obtains the data storage structure through the first shared memory, including: If the first access operation is a database operation, the user process queries the data storage structure through a database, the database includes a key value KV or a tree, and the first access operation includes setting or obtaining.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The user process obtains a second request, where the second request is used by the user process to perform a second access operation on a second system configuration item of a second system service process; The user process determines the second access interface information of the second system configuration item through a second shared memory, the second shared memory is mapped to the virtual address space of the user process and the second system service process, and the second shared memory is different from the first shared memory; The user process transmits the second request to the second system service process through the second access interface information, so that the second system service process responds to the second request and uses the function corresponding to the second system configuration item to perform the second access operation.

6. A system configuration processing method, characterized in that: The method is applied to a microkernel architecture, and the method comprises: The first system service process applies for a first shared memory from the microkernel operating system, and the first shared memory is mapped to the virtual address space of the user process and the first system service process respectively; The first system service process manages a first system configuration item in the first shared memory; The first system service process receives a first request transmitted by the user process, where the first request is used by the user process to perform a first access operation on the first system configuration item of the first system service process; The first system service process responds to the first request and uses the function corresponding to the first system configuration item to perform the first access operation; The first system service process manages the first system configuration item in the first shared memory, including: The first system service process creates entry information corresponding to the first system configuration item in the first shared memory, where the entry information includes an identifier of the first system configuration item and first access interface information of the first system configuration item; The first system service process adds the entry information in a data storage structure.

7. The method according to claim 6, characterized in that The first system service process includes: at least one service process of process management, memory management, file system management, driver management, and network management.

8. The method according to claim 6 or 7, characterized in that: The first system service process responds to the first request, including: If the first request authentication is successful, the first system service process responds to the read and write request.

9. The method according to claim 8, characterized in that The authentication of the first request is performed in the first system service process.

10. A system configuration processing method, characterized in that: The method is applied to an electronic device, and the method comprises: Obtaining a first request, where the first request is used to instruct a first process to access a system configuration item in a second process by querying a data storage structure in a shared memory, where the first process is an application in a user state, and the second process is a system program in the user state, where the shared memory is mapped to virtual address spaces of the first process and the second process, respectively, and where the data storage structure includes an identifier of the system configuration item and interface information with the identifier of the system configuration item, where the interface information is used for the first process to communicate with the second process; In response to the first request, the electronic device performs the access processing using the function corresponding to the system configuration item through the second process.

11. An electronic device, characterized in that: The electronic device adopts a microkernel architecture, and the electronic device includes: An acquiring unit, configured to acquire a first request, wherein the first request is used by a user process to perform a first access operation on a first system configuration item provided by a first system service process; a determining unit, configured to determine first access interface information of the first system configuration item through a first shared memory, wherein the first shared memory has a mapping relationship with the virtual address space of the user process and the first system service process respectively, and the first access interface information is used for the user process to communicate with the first system service process; a transmitting unit, configured to transmit the first request to the first system service process through the first access interface information, so that the first system service process responds to the first request and uses the function corresponding to the first system configuration item to perform the first access operation; The determining unit is specifically configured to obtain a data storage structure through the first shared memory, where the data storage structure is configured to store entry information created by the first system service process, where the entry information includes an identifier of the first system configuration item and the first access interface information of the first system configuration item; The determining unit is specifically configured to determine the first access interface information through the first request and the data storage structure.

12. The device according to claim 11, characterized in that The first system service process includes: at least one service process of process management, memory management, file system management, driver management, and network management.

13. The device according to claim 11, characterized in that The determining unit is specifically configured to, if the first access operation is a file operation, cause the user process to query the data storage structure by calling a file system, and the first access operation includes an open, read, write or close operation.

14. The device according to claim 11, characterized in that The determining unit is specifically configured to, if the first access operation is a database operation, cause the user process to query the data storage structure through a database, the database may be in the form of a key value KV or a tree, and the first access operation may include setting or obtaining.

15. The device according to any one of claims 11 to 14, characterized in that The acquisition unit is further used to acquire a second request, where the second request is used by the user process to perform a second access operation on a second system configuration item of a second system service process; The determining unit is further configured to determine second access interface information of the second system configuration item through a second shared memory, where the second shared memory is mapped to a virtual address space of the user process and the second system service process, and the second shared memory is different from the first shared memory; The transmitting unit is further used to transmit the second request to the second system service process through the second access interface information, so that the second system service process responds to the second request and uses the function corresponding to the second system configuration item to perform the second access operation.

16. An electronic device, characterized in that: The electronic device adopts a microkernel architecture, and the electronic device includes: An application unit, used for applying for a first shared memory from the microkernel operating system, wherein the first shared memory is respectively mapped to the virtual address space of the user process and the first system service process; A management unit, configured to manage a first system configuration item in the first shared memory; a receiving unit, configured to receive a first request transmitted by the user process, wherein the first request is used by the user process to perform a first access operation on the first system configuration item of the first system service process; an execution unit, configured to respond to the first request and use the function corresponding to the first system configuration item to execute the first access operation; The management unit is specifically configured to create entry information corresponding to the first system configuration item in the first shared memory, wherein the entry information includes an identifier of the first system configuration item and first access interface information of the first system configuration item; The management unit is specifically used to add the entry information in the data storage structure.

17. The device according to claim 16, characterized in that The first system service process includes: at least one service process of process management, memory management, file system management, driver management, and network management.

18. The device according to claim 16 or 17, characterized in that The execution unit is specifically configured to, if the first request authentication is successful, allow the first system service process to respond to the read and write request.

19. The device according to claim 18, characterized in that The authentication of the first request is performed in the first system service process.

20. An electronic device, characterized in that: The electronic device comprises: an acquisition unit, configured to acquire a first request, wherein the first request is used to instruct a first process to access a system configuration item in a second process by querying a data storage structure in a shared memory, wherein the first process is an application program in a user state, and the second process is a system program in the user state, and the shared memory is respectively mapped to a virtual address space of the first process and the second process, and the data storage structure includes an identifier of the system configuration item and interface information with the identifier of the system configuration item, and the interface information is used for the first process to communicate with the second process; An execution unit is used to respond to the first request, and the electronic device executes the access processing through the second process using the function corresponding to the system configuration item.

21. A microkernel architecture, characterized in that: The microkernel architecture comprises a user process as described in any one of claims 1 to 5, and / or a first system service process as described in any one of claims 6 to 9.

22. An electronic device, characterized in that: The electronic device comprises a memory and a processor; the memory stores codes, the processor is configured to execute the codes, and when the codes are executed, the electronic device executes the method according to any one of claims 1 to 10.

23. A computer-readable storage medium, characterized in that: The method comprises computer-readable instructions, which, when executed on a computer, cause the computer to perform the method according to any one of claims 1 to 10.

24. A computer program product, characterized in that The method comprises computer-readable instructions, which, when executed on a computer, cause the computer to perform the method according to any one of claims 1 to 10.