Kernel processing method and system

Through the cooperation between the kernel management unit and the kernel storage unit, it responds to user information display requests and determines and displays the kernel information of the operating system kernel, solving the problem that users cannot quickly determine the kernel version and attributes of the operating system, and realizes efficient determination and compatibility check of the operating system kernel information.

CN119759412AInactive Publication Date: 2025-04-04ALIBABA CLOUD COMPUTING CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510267686.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-04-04
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Users cannot simply and quickly determine the version and properties of the operating system kernel, resulting in the incompatibility of the application and the operating system kernel.

Method used

Provides a kernel processing method, through the cooperation of the kernel management unit and the kernel storage unit, in response to user information display requests, determine the target operating system kernel from multiple operating system kernels, and display its kernel information.

Benefits of technology

It realizes efficient determination of kernel information of the operating system kernel, avoids the problem of incompatibility between the application and the operating system kernel, and simplifies the operation of users when running computer applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759412A_ABST
    Figure CN119759412A_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a kernel processing method and system, wherein the kernel processing method is applied to a kernel management unit, including: in response to an information display request for a target operating system kernel, determining the target operating system kernel from multiple operating system kernels, wherein the multiple operating system kernels are operating system kernels of multiple different versions; determining the target kernel information of the target operating system kernel according to the kernel information of the multiple operating system kernels obtained from a kernel storage unit, and displaying the target kernel information, wherein the kernel storage unit is used to store the kernel information of the multiple operating system kernels managed by the kernel management unit. This avoids the problem of incompatibility between the application and the operating system kernel when the user is running a computer application due to the inability to simply and quickly determine the kernel information such as the version and attributes of the operating system kernel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the technical field of computer operating systems, and in particular to a kernel processing method. One or more embodiments of this specification also relate to another kernel processing method, a kernel processing system, a computing device, a computer-readable storage medium, and a computer program product. Background Art

[0002] With the continuous development of computer technology and operating system technology, a computer operating system may have one or more versions of operating system kernels during operation, thereby providing assistance for the operation of different computer applications.

[0003] However, currently users are unable to simply and quickly determine kernel information such as the version and attributes of the operating system kernel, which leads to incompatibility issues between the application and the operating system kernel when the user runs the computer application. Therefore, how to efficiently determine the kernel information of the operating system kernel has become an urgent problem to be solved. Summary of the invention

[0004] In view of this, an embodiment of this specification provides a kernel processing method. One or more embodiments of this specification also relate to another kernel processing method, a kernel processing system, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a kernel processing method is provided, which is applied to a kernel management unit, and includes: In response to an information display request for a target operating system kernel, determining the target operating system kernel from a plurality of operating system kernels, wherein the plurality of operating system kernels are operating system kernels of a plurality of different versions; According to the kernel information of the multiple operating system kernels obtained from the kernel storage unit, the target kernel information of the target operating system kernel is determined and the target kernel information is displayed, wherein the kernel storage unit is used to store the kernel information of the multiple operating system kernels managed by the kernel management unit.

[0006] According to a second aspect of an embodiment of this specification, a kernel processing method is provided, which is applied to a kernel storage unit, and includes: receiving an information acquisition request sent by a kernel management unit, and determining kernel information of an operating system kernel stored in a plurality of kernel storage modules based on the information acquisition request; The kernel information of multiple operating system kernels is sent to the kernel management unit, so that the kernel management unit executes the kernel processing method based on the kernel information.

[0007] According to a third aspect of an embodiment of this specification, a kernel processing system is provided, the system comprising a kernel management unit and a kernel storage unit; The kernel storage unit is configured to receive an information acquisition request sent by the kernel management unit, and based on the information acquisition request, determine the kernel information of the operating system kernels stored in the multiple kernel storage modules, and send the kernel information of the multiple operating system kernels to the kernel management unit; The kernel management unit is configured to determine an information display request for a target operating system kernel, and based on the information display request, determine the target operating system kernel from multiple operating system kernels, determine multiple kernel information obtained from a kernel storage unit, select kernel information of the target operating system kernel from the multiple kernel information, and display the kernel information.

[0008] According to a fourth aspect of an embodiment of this specification, a computing device is provided, including: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of any one of the above-mentioned kernel processing methods are implemented.

[0009] According to a fifth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of any one of the above-mentioned kernel processing methods are implemented.

[0010] According to a sixth aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instruction, which implements the steps of any one of the above-mentioned kernel processing methods when executed by a processor.

[0011] One or more embodiments of the present specification provide a kernel processing method applied to a kernel management unit, which can obtain kernel information of multiple operating system kernels from a kernel storage unit in advance; when receiving an information display request for a target operating system kernel, the method can determine the target operating system kernel from multiple operating system kernels in response to the information display request, and determine the target kernel information of the target operating system kernel from the kernel information of the multiple operating system kernels, and finally display the target kernel information to the user, thereby achieving efficient determination of the kernel information of the operating system kernel and avoiding the problem of incompatibility between the application and the operating system kernel when the user is running the computer application due to the inability to simply and quickly determine the kernel information such as the version and attributes of the operating system kernel. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is an application diagram of a kernel processing method provided by an embodiment of this specification; Figure 2 is a flowchart of a kernel processing method provided by an embodiment of this specification; Figure 3 is a schematic diagram of an information display interface in a kernel processing method provided by an embodiment of this specification; Figure 4 is a flow chart of another kernel processing method provided by an embodiment of this specification; Figure 5 is a process flow chart of a kernel processing method provided by an embodiment of the present specification; Figure 6 It is a schematic diagram of the structure of a kernel processing system provided by an embodiment of this specification; Figure 7 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0013] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0014] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0015] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0016] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0017] First, the terms involved in one or more embodiments of this specification are explained.

[0018] Software package management tool: refers to the tool used to install software in Linux-like systems, such as yum, dnf, etc.

[0019] Yum: It is a package manager for Linux systems, mainly used to automatically install, update and remove software packages.

[0020] dnf: is a package management tool used to install, upgrade, and remove software packages on Linux systems.

[0021] Linux: A computer operating system.

[0022] CVE (Common Vulnerabilities & Exposures): refers to common vulnerability disclosures.

[0023] Software warehouse: also known as software package warehouse or installation package warehouse; a software warehouse is a repository for storing kernel software packages or kernel installation packages; for example, the software warehouse can be a server or a database; the software warehouse has a corresponding network address and can be accessed through the http protocol.

[0024] Multi-version kernel: refers to the kernel installation package compiled and built from different mainline branches of the Linux kernel, such as 4.19, 5.10, 6.6 and other process mainlines. The kernel behaviors and functions of these different mainlines are often quite different.

[0025] kernel-install tool: is a plug-in tool that can obtain and display all kernel version information, and users can use this tool to quickly obtain and install kernel software packages.

[0026] Kernel: The most basic part of the operating system, it is the piece of software that provides secure access to the computer hardware for many applications.

[0027] A command line program, also known as a command line tool or command line interface, is a program interface that prompts users to enter commands in an operating system. In different operating system environments, the presentation of command line programs varies.

[0028] Configuration file: It is an important file for managing the software package repository. It defines how the software package management tool interacts with the software repository. The software package management tool manages the software package repository and the kernel software packages in the software package repository based on the configuration file.

[0029] libdnf basic library: It is a package management library used to handle tasks such as kernel software package installation, upgrade, query, and dependency resolution.

[0030] With the continuous development of computer technology and operating system technology, a computer operating system may have one or more versions of an operating system kernel during operation, thereby providing assistance for the operation of different computer applications; however, currently users are unable to simply and quickly determine kernel information such as the version and attributes of the operating system kernel, which results in the problem of incompatibility between the application and the operating system kernel when the user is running the computer application.

[0031] For example, during the life cycle of an operating system, multiple versions of the kernel, as well as a large number of matching modules and hotfixes, will be born. These software packages are stored in a warehouse (i.e., a software warehouse) and installed through a software package management tool. However, users often cannot query or select the kernel they want, so they need to spend a lot of energy writing documents and answering questions. As the number of versions increases, management costs also increase.

[0032] Moreover, for Linux users, the kernel is the most important part of the operating system. An application usually selects a kernel version during its life cycle and accepts CVE updates and other problem fixes on that version. However, different users often make different choices; when multiple kernels are presented at the same time, users need to accurately select the content that needs to be updated and installed. If the user uses the update command without knowing it, the kernel will be updated to the highest version, which is obviously not what the user expects.

[0033] Based on this, in this specification, a kernel processing method is provided. One or more embodiments of this specification also involve another kernel processing method, a kernel processing system, a computing device, a computer-readable storage medium and a computer program product, which are described in detail one by one in the following embodiments.

[0034] See also Figure 1 , Figure 1A schematic diagram of an application of a kernel processing method provided according to an embodiment of this specification is shown; based on Figure 1 It can be seen that the kernel-install tool is installed in the operating system of the client 102, and the user and the kernel-install tool interact with each other through the command prompt; based on this, the user sends the command prompt (i.e., information display request) that displays the kernel information of the specified kernel (i.e., the target operating system kernel) to the kernel-install tool; the kernel-install tool can determine the specified kernel from multiple operating system kernels, and determine the kernel information corresponding to the specified kernel based on the kernel information obtained from the software warehouse 104, and then display the kernel information to the user through the command line interface. In this way, the user can query or select the kernel he wants.

[0035] See also Figure 2 , Figure 2 A flowchart of a kernel processing method provided according to an embodiment of the present specification is shown. The kernel processing method is applied to a kernel management unit and specifically includes the following steps.

[0036] Step 202: In response to an information display request for a target operating system kernel, determine the target operating system kernel from a plurality of operating system kernels, wherein the plurality of operating system kernels are operating system kernels of a plurality of different versions.

[0037] The kernel management unit can be understood as a unit that manages the operating system. For example, the kernel management unit can be a system program, an application, a plug-in corresponding to the application, a software package management tool, or a plug-in of a software package management tool. In one or more embodiments of the present specification, the kernel management unit can be a kernel-install tool. In a system with multiple kernel versions, the kernel-install tool provided by the present method can be used to query the kernel information of the currently available kernel, and the corresponding kernel software package (kernel installation package) can be directly installed after the kernel version is selected. The available kernel can be understood as a kernel that can be installed.

[0038] The information display request can be understood as a request to instruct the kernel management unit to display the target kernel information of the target operating system kernel; the information display request can be sent to the kernel management unit by the user through the request sending module in the client; the request sending module is a human-computer interaction module in the client; the user can use the request sending module to send a request to the kernel management unit by performing human-computer interaction operations (such as inputting parameters, touching, clicking, selecting, etc.) in the request sending module. Among them, the request sending module can be a hardware device such as a mouse, keyboard, touch screen, etc., and the information display request can be a control instruction sent based on the hardware device; or the request sending module can be a command line program (cmd.exe), a command line interface, and the information display request can be a command prompt, a command line, a linux command, etc.

[0039] The operating system kernel can be understood as the kernel of a computer operating system, for example, the Linux kernel; different versions of operating system kernels can be understood as multi-version kernels.

[0040] Specifically, the kernel management unit in this specification may receive an information display request for a target operating system kernel, and by responding to the information display request, may determine the target operating system kernel from a plurality of operating system kernels.

[0041] Taking the application of the kernel processing method provided in this specification in a multi-version kernel scenario as an example, the kernel processing method is described, wherein the kernel management unit is the kernel-install tool, and the information display request is a command prompt. Based on this, the user can enter a command prompt for querying kernel information in the command line interface, and the command prompt will be sent to the kernel-install tool; the kernel-install tool determines the target operating system kernel queried by the user from multiple available operating system kernels of different versions based on the command prompt.

[0042] Step 204: Determine the target kernel information of the target operating system kernel based on the kernel information of the multiple operating system kernels obtained from the kernel storage unit, and display the target kernel information, wherein the kernel storage unit is used to store the kernel information of the multiple operating system kernels managed by the kernel management unit.

[0043] The kernel storage unit can be understood as a unit for storing kernel information of multiple operating system kernels. In the embodiments of this specification, the kernel storage unit can also be used to store operating system kernel files of multiple operating system kernels; for example, the kernel storage unit can be a software warehouse, a data storage system, a server, a cloud server, or a database. The kernel storage unit and the kernel management unit can be accessed based on a network protocol (such as an http protocol).

[0044] Kernel information can be understood as information parameters related to the operating system kernel, such as hardware configuration information, identification information, version information, architecture information, size, etc. corresponding to the operating system.

[0045] The target operating system kernel may be a plurality of operating system kernels, or one operating system kernel among the plurality of operating system kernels, or a portion of the operating system kernels (for example, at least two operating system kernels) among the plurality of operating system kernels.

[0046] Continuing with the above example, the kernel storage unit may be a software package repository (i.e., a software repository); based on this, the method may determine multiple different versions of kernels stored in the software package repository before receiving a command prompt, and obtain kernel information corresponding to the multiple different versions of kernels; and then store the kernel information in a local data storage unit (e.g., memory, disk, local database, etc.).

[0047] After the target operating system kernel queried by the user is determined based on the command prompt, the kernel information of the target operating system kernel is determined from multiple kernel information stored locally; and then the kernel information is displayed. This realizes efficient determination of the kernel information of the operating system kernel, and avoids the problem of incompatibility between the application and the operating system kernel when the user runs the computer application due to the inability to simply and quickly determine the kernel information such as the version and attributes of the operating system kernel.

[0048] In one or more embodiments provided in this specification, the target operating system kernel is the multiple operating system kernels; The step of determining the target operating system kernel from a plurality of operating system kernels in response to the information display request for the target operating system kernel comprises: receiving an information display request for the target operating system kernel, and determining the target operating system kernel from the multiple operating system kernels; The step of determining target kernel information of the target operating system kernel according to the kernel information of the multiple operating system kernels obtained from the kernel storage unit, and displaying the target kernel information includes: The kernel information of the multiple operating system kernels obtained from the kernel storage unit is determined as target kernel information, and the target kernel information is displayed.

[0049] The information display request may be a request for displaying kernel information of all kernels.

[0050] Using the above example, the target kernel information is kernel version information and / or kernel identification information (such as kernel name); based on this, the user can enter a command prompt to display kernel information corresponding to all kernels in the command line interface, and the command prompt will be sent to the kernel-install tool; based on the command prompt, the kernel-install tool determines that the operating system kernel queried by the user is all available kernels. Then, the kernel-install tool outputs the kernel version information and / or kernel identification information of all kernels stored locally and displays them.

[0051] Based on the above embodiments, it can be seen that the kernel management module provided in this specification can directly and efficiently display the kernel information of all versions of the operating system kernel, so that users can intuitively understand the kernel information of multiple versions of the operating system kernel, and then accurately select the required operating system version.

[0052] In one or more embodiments provided in this specification, in order to facilitate users to understand the kernel information of part of the operating system kernel in a targeted manner, the method can determine part of the operating system kernel (i.e., the target operating system kernel) among multiple operating system kernels and display the kernel information of the part of the operating system kernel; the specific implementation method is as follows.

[0053] The step of determining the target operating system kernel from a plurality of operating system kernels in response to the information display request for the target operating system kernel comprises: receiving an information display request for the target operating system kernel, wherein the information display request includes a target kernel identifier of the target operating system kernel; Determine at least one operating system kernel corresponding to the target kernel identifier from the multiple operating system kernels, and determine the at least one operating system kernel as the target operating system kernel; The step of determining target kernel information of the target operating system kernel according to the kernel information of the multiple operating system kernels obtained from the kernel storage unit, and displaying the target kernel information includes: Determining the kernel information of the plurality of operating system kernels obtained from the kernel storage unit; From the multiple kernel information, kernel update information corresponding to the target operating system kernel is determined, and the kernel update information is displayed.

[0054] The target kernel identifier may be understood as kernel identifier information used to uniquely identify a target operating system kernel. For example, the target kernel identifier may be a kernel name or a kernel number.

[0055] The kernel update information may be understood as update record information of the operating system kernel, and is used to indicate the update status of the operating system kernel.

[0056] Using the above example, the user can enter a command prompt that displays the update information corresponding to the specified kernel in the command line interface, and the command prompt will be sent to the kernel-install tool; the kernel-install tool determines the target kernel specified by the user based on the kernel name carried in the command prompt. Then, the kernel-install tool determines the update information of the target kernel from the locally cached kernel information and displays the update information.

[0057] Based on the above embodiments, it can be seen that this method can display the update information of some operating system kernels in a targeted manner based on the information display request, so that users can understand the update status of some operating system kernels in detail, which is convenient for users to select appropriate kernels for installation.

[0058] In one or more embodiments provided in this specification, the kernel management unit is a kernel management unit in a client, and the client includes an information processing unit associated with the kernel management unit; Before determining the target operating system kernel from a plurality of operating system kernels in response to the information display request for the target operating system kernel, the method further includes: Using the information processing unit, configuring module configuration information of multiple kernel storage modules in the kernel storage unit on the client, wherein the multiple kernel storage modules are used to store operating system kernel files of the multiple operating system kernels and the kernel information; Based on the module configuration information, the multiple operating system kernels are determined from the multiple kernel storage modules, and kernel information of the multiple operating system kernels is obtained.

[0059] The information processing unit can be understood as a unit that can configure the module configuration information into the operating system of the client, and the information processing unit can be an application, a system program, a software module, etc. For example, the information processing unit can be a software package management tool, and the corresponding kernel management unit can be understood as a plug-in tool corresponding to the software package management tool, or an application that calls the software package management tool. The information processing unit associated with the kernel management unit can be understood as the kernel management unit can be used as a plug-in of the information processing unit; or the kernel management unit can call the information processing unit to process information.

[0060] The kernel storage module can be understood as a module for storing kernel information of multiple operating system kernels. In the embodiments of the present specification, the kernel storage module can also be used to store operating system kernel files of multiple operating system kernels; for example, the kernel storage module can be a software warehouse; the kernel storage unit can be a unit including multiple kernel storage modules, for example, the kernel storage unit is a collection consisting of multiple kernel storage modules.

[0061] It should be noted that the kernel can be divided into a major version kernel and a minor version kernel; for a major version kernel, a kernel repository (i.e., a kernel storage module) can store one version of the major version kernel; but there will be multiple minor version kernels; among them, the minor version can be understood as a forward-compatible kernel, and the major version kernel can be understood as a kernel that is not forward-compatible. Therefore, for the major version kernel, the kernel (i.e., the major version kernel) can be distributed to different kernel repositories according to the version to achieve isolation and non-interference. The operating system kernel in one or more embodiments of this specification may be a major version kernel, i.e., a kernel that is not forward-compatible.

[0062] The module configuration information may be understood as a file used to register the kernel storage module in the operating system of the client. For example, the module configuration information may be a configuration file of a software repository (software package repository).

[0063] Using the above example, in the process of managing the kernel, the user can obtain the configuration files of each software package repository and install the configuration files of the software package repository on the client through the software package management tool. By installing the configuration files of the software package repository, multiple kernel repositories are registered to the OS system (operating system), so that the kernel-install tool can interact with multiple software repositories. At the same time, the software repository remains closed by default.

[0064] When the user runs the kernel-install tool, the kernel-install tool first queries all registered kernel package repositories to see whether they contain the kernel package; if they do, it sends a kernel information acquisition request to the package repository via the http protocol.

[0065] The software package repository will send kernel information such as kernel version information, kernel identification information, and kernel update information of the kernel software package stored in itself to the kernel-install tool according to the kernel information acquisition request.

[0066] After obtaining all kernel information, the kernel-install tool can manage kernel packages based on user input.

[0067] In addition, the kernel-install tool can be a plug-in of the software package management tool; the kernel-install tool can be run within the framework of the software package management tool; the user can interact with the kernel-install tool by editing the command line and inputting, that is, the user and the kernel-install tool perform human-computer interaction through the command prompt (such as dnf kernel-install al***0). Based on this, if the kernel-install tool determines that no registered kernel repository provides a valid kernel software package, it returns to the main logic of the software package management tool, and the software package management tool attempts to obtain the kernel installation package (i.e., the operating system kernel file) from the common default repository (a default kernel storage unit), and attempts to install the kernel installation package. Among them, the default repository can be understood as a software repository that stores the system kernel that can be installed. When the kernel-install tool determines that there is no registered kernel repository, or the registered kernel repository cannot provide a kernel that can be installed, the software package management tool can be used to obtain the kernel installation package from the common default repository.

[0068] Based on the contents of the above embodiments, it can be known that the method obtains kernel information of multiple operating system kernels from the kernel storage unit in advance through the kernel management unit, so as to quickly respond to information display requests and display target kernel information later.

[0069] In one or more embodiments provided in this specification, the kernel management unit is a kernel management unit in a client; The displaying of the target kernel information includes: An information display interface corresponding to the kernel management unit in the client is determined, and the target kernel information is displayed using the information display interface.

[0070] The client is a client device, and the kernel storage unit can be a service end or a server.

[0071] The information display interface can be understood as an interface for displaying target kernel information, and the information display interface can also display kernel update information; the information display interface can be a human-computer interaction interface, for example, the information display interface is a command line interface, a web page or an application program interface.

[0072] Using the above example, Figure 3 is a schematic diagram of an information display interface in a kernel processing method provided in an embodiment of this specification, based on Figure 3 It can be known that the information display interface can be a command line interface; after the kernel-install tool outputs the kernel information or kernel update information of all kernels based on the command prompt, the kernel information or kernel update information can be displayed in the command line interface; Figure 3 Figure a in Figure 1 shows the instructions for outputting the currently available cores; Figure 3 Figure b in the figure shows the kernel information of a kernel specified by the user, so that the user can accurately understand the available kernels. Figure 3 The information shown in Figure a includes: sudo: It is a super user command that allows users to run programs with administrator privileges. dnf: It is the abbreviation of DandifiedYum (DNF). dnf means the default package manager, which is used to install, update and remove software packages. -q: It is an option that tells DNF to keep quiet and reduce output information when performing operations. kernel-install: It is a plug-in or script used to handle kernel-related tasks such as installing, uninstalling, and querying kernel versions. --list: It is an option that instructs kernel-install to list eligible kernel installation packages. anck5.x_10-64k can be a kernel that specifies a specific version or series. hide and show: These two parameters are used to hide and display certain kernel installation packages, respectively.

[0073] Figure 3 Figure a shows the kernel information of a kernel, including: historical query information: "$sudo dnfkernel-install al**0 Last metadata expiration check: 3:00:11 ago, executed on Thursday, December 12, 2024 12:18:00. Last metadata expiration check: 3:00:12 ago, executed on Thursday, December 12, 2024 12:18:00. Dependency resolved.", software package information: "Installation: kernel, transaction summary: Installed 1 software package, total download: 61M, installation size: 377M, version information: 6.**2-001.al***0".

[0074] In one or more embodiments provided in this specification, the kernel storage unit is a kernel storage service client; After determining the target kernel information of the target operating system kernel according to the kernel information of the multiple operating system kernels obtained from the kernel storage unit and displaying the target kernel information, the method further includes: In response to a kernel installation request for the kernel of the operating system to be installed, determining a kernel acquisition request based on a kernel identifier of the kernel of the operating system to be installed, and sending the kernel acquisition request to the kernel storage service end; Receive the operating system kernel file of the operating system kernel to be installed, which is sent by the kernel storage service client in response to the kernel acquisition request, and install the operating system kernel file.

[0075] The kernel installation request may be understood as a request to install the operating system kernel, such as a command prompt indicating the installation of the operating system kernel; the operating system kernel to be installed may be understood as the operating system kernel to be installed; the kernel identifier may be understood as kernel identifier information that uniquely identifies an operating system kernel. The operating system kernel file may be understood as a kernel installation file corresponding to the operating system kernel to be installed, such as a kernel installation package or a kernel software package.

[0076] Using the above example, the kernel-install tool can query and display the currently available kernels. When the user selects a kernel version (i.e., the operating system kernel to be installed), the software package (i.e., the installation package) can be installed by temporarily opening the corresponding repository. Specifically, first, the kernel-install tool temporarily opens the software package repository corresponding to the kernel selected by the user, and sends a software package acquisition request (i.e., kernel acquisition request) to the software package repository. Secondly, the software package repository determines the corresponding kernel installation package (operating system kernel file) according to the kernel name carried in the software package acquisition request, and sends it to the client for installation. Finally, the client operating system installs the received kernel installation package. In this way, users can select a specific kernel for installation according to their own needs, avoiding the problem of incompatibility between the application and the operating system kernel.

[0077] One or more embodiments of the present specification provide a kernel processing method applied to a kernel management unit, which can obtain kernel information of multiple operating system kernels from a kernel storage unit in advance; when receiving an information display request for a target operating system kernel, the method can determine the target operating system kernel from multiple operating system kernels in response to the information display request, and determine the target kernel information of the target operating system kernel from the kernel information of the multiple operating system kernels, and finally display the target kernel information to the user, thereby achieving efficient determination of the kernel information of the operating system kernel and avoiding the problem of incompatibility between the application and the operating system kernel when the user is running the computer application due to the inability to simply and quickly determine the kernel information such as the version and attributes of the operating system kernel.

[0078] See also Figure 4 , Figure 4 A flowchart of another kernel processing method provided according to an embodiment of the present specification is shown. The another kernel processing method is applied to a kernel storage unit and specifically includes the following steps.

[0079] Step 402: Receive an information acquisition request sent by a kernel management unit, and determine kernel information of the operating system kernel stored in multiple kernel storage modules based on the information acquisition request.

[0080] Step 404: Send kernel information of multiple operating system kernels to the kernel management unit, so that the kernel management unit executes the above kernel processing method based on the kernel information.

[0081] The information acquisition request may be understood as a request for acquiring kernel information of an operating system kernel, and the information acquisition request is sent to the memory storage unit via a network protocol (eg, http protocol).

[0082] In one or more embodiments provided in this specification, after sending the kernel information of the multiple operating system kernels to the kernel management unit, it also includes: Receiving a kernel acquisition request sent by the kernel management unit, wherein the kernel acquisition request carries a kernel identifier of the operating system kernel to be installed; Determine an operating system kernel file of the operating system kernel stored in the multiple kernel storage modules, and determine the operating system kernel file of the operating system kernel to be installed from the multiple operating system kernel files based on the kernel identifier of the operating system kernel to be installed; The operating system kernel file of the operating system kernel to be installed is sent to the kernel management unit, so that the kernel management unit installs the operating system kernel file of the operating system kernel to be installed.

[0083] Taking the application of the kernel processing method provided in this specification in a multi-version kernel scenario as an example, the kernel processing method is explained; this method first designs and configures the kernel repository, and distributes the kernel (major version kernel) to different kernel repositories according to the version to achieve mutual isolation and non-interference; then, when receiving a software package acquisition request sent by the kernel-install tool, the corresponding kernel installation package is determined according to the kernel name carried in the software package acquisition request, and sent to the client for installation.

[0084] In one or more embodiments provided in this specification, before determining the kernel information of the operating system kernel stored in the plurality of kernel storage modules based on the information acquisition request, the method further includes: Determine storage space occupancy information of multiple operating system kernels to be screened, and determine the operating system to be screened whose storage space occupancy information is greater than or equal to a preset occupancy information threshold as the operating system kernel; From the multiple kernel storage modules, a target kernel storage module corresponding to each operating system kernel is determined, and each operating system kernel is stored in the target kernel storage module, wherein one operating system kernel corresponds to one target kernel storage module.

[0085] Among them, the operating system kernel to be screened can be understood as the operating system kernel that needs to be stored in the kernel storage module after screening; the storage space occupancy information can be understood as information used to indicate the size of the storage space occupied by the operating system kernel to be screened, for example, the storage space occupancy information can be bytes, volume, data volume, etc. The preset occupancy information threshold can be understood as a pre-set storage space occupancy information threshold for screening the operating system kernel to be screened; when the storage space occupancy information is bytes, the preset occupancy information threshold can be a byte threshold. For example, the preset occupancy information threshold can be 500M; when the storage space occupancy information of an operating system kernel to be screened (for example, 600M) is greater than or equal to the preset occupancy information threshold (500M), it can be determined that the operating system kernel to be screened is a large version operating system kernel.

[0086] The target kernel storage module may be understood as a kernel storage module for storing an operating system kernel.

[0087] Using the above example, the system kernel (i.e., the operating system kernel to be screened) in this method is divided into major version and minor version; for the major version, only one major version is stored in a kernel repository. Therefore, it is necessary to determine the installation size (i.e., storage space occupation information) of each system kernel; if the installation size (600M) is greater than or equal to the preset installation size (i.e., the preset occupation information threshold), the system kernel is determined as a major version kernel; otherwise, it is determined as a minor version kernel.

[0088] Since only one major version is stored in a kernel repository, it is necessary to allocate corresponding kernel repositories (ie, target kernel storage modules) for multiple major version kernels, and store the major version kernels in the corresponding kernel repositories.

[0089] Based on the contents of the above embodiments, it can be known that this method achieves isolation and non-interference of different major versions of kernels by distributing them to different kernel repositories.

[0090] In addition, for a small version kernel, since there may be multiple small version kernels and the small version kernels are forward compatible, multiple small version kernels can be stored in one kernel repository. That is to say, in one or more embodiments provided in this specification, after determining the storage space occupation information of multiple operating system kernels to be screened, it also includes: Determine the operating system to be screened whose storage space occupancy information is less than a preset occupancy information threshold as the small version operating system kernel; The small version operating system kernel is stored in any one of the multiple kernel storage modules.

[0091] One or more embodiments of the present specification provide another kernel processing method applied to a kernel storage unit. This method can send kernel information of multiple operating system kernels to the kernel management unit based on the request of the kernel management unit, thereby facilitating the kernel management unit to efficiently determine the kernel information of the operating system kernel, thereby avoiding the problem of incompatibility between the application and the operating system kernel when the user is running the computer application due to the inability to simply and quickly determine the kernel information such as the version and attributes of the operating system kernel.

[0092] It should be noted that the above is a schematic scheme of another kernel processing method of this embodiment. It should be noted that the technical scheme of the other kernel processing method and the technical scheme of the above-mentioned one kernel processing method belong to the same concept, and the details of the technical scheme of the other kernel processing method that are not described in detail can all be referred to the description of the technical scheme of the above-mentioned one kernel processing method.

[0093] The following combination Figure 5 , taking the application of the kernel processing method provided in this specification in a multi-version kernel scenario as an example, the kernel processing method is further described. Figure 5 A processing flow chart of a kernel processing method provided by an embodiment of the present specification is shown.

[0094] The kernel processing method in this specification is applied to the kernel-install tool, which is a plug-in of the software package management tool; the kernel-install tool can be run within the framework of the software package management tool; the user can interact with the kernel-install tool by editing the command line and inputting, that is, the user and the kernel-install tool perform human-computer interaction through the command prompt (such as dnf kernel-install al***0).

[0095] The kernel processing method specifically includes the following steps.

[0096] Step 502: Distribute the kernel software package.

[0097] This step is performed as follows: First, the method designs and configures a kernel repository to create multiple kernel repositories corresponding to multiple kernel versions; wherein the kernel repository may be a server for storing kernel installation packages.

[0098] Secondly, the kernel (major version kernel) is distributed to different kernel repositories for storage according to the version, so that they are isolated from each other and do not affect each other.

[0099] Step 504: Register the kernel repository.

[0100] This step is performed as follows: First, in the process of managing the kernel, the user can obtain the configuration files of each software package repository; Secondly, through the software package management tool, the configuration file of the software package repository is installed on the client, so that multiple kernel repositories are registered to the OS system (operating system), and then the kernel-install tool corresponding to the software package management tool can interact with multiple software repositories.

[0101] It should be noted that after registering multiple kernel repositories to the OS system, the software repository remains closed by default.

[0102] Step 506: Query all kernel repositories.

[0103] This step is performed as follows: First, run the kernel-install tool corresponding to the software package management tool; Secondly, when the kernel-install tool is running, query all kernel package repositories registered to the OS system to see if the kernel package is included; If the kernel software package is included, a kernel information acquisition request is sent to the software package repository through the http protocol, and the kernel information returned by the software package repository is received.

[0104] If the kernel software package is not included, step 512 is executed.

[0105] Step 508: Obtain user input.

[0106] Specifically, after obtaining all kernel information, the kernel-install tool can manage kernel software packages according to user input; the specific management method is as follows: 1. Display the kernel package versions of all kernel repositories to facilitate users to obtain kernel distribution information.

[0107] First, the user can enter the command prompt that displays the kernel information corresponding to all kernels in the client's command line interface, and the command prompt will be sent to the kernel-install tool; Secondly, the kernel-install tool determines that the operating system kernel queried by the user is all available kernels based on the command prompt, and then outputs kernel information of all kernel versions, including: kernel version information, kernel identification information, etc.

[0108] Secondly, the kernel information is displayed in the client's command line interface.

[0109] 2. Display a specified kernel version to display the sub-updates under the repository.

[0110] First, the user can enter the command prompt that displays the update information corresponding to the specified kernel in the command line interface, and the command prompt will be sent to the kernel-install tool.

[0111] Secondly, the kernel-install tool determines the target kernel specified by the user based on the kernel name carried in the command prompt. Then, the update information of the target kernel is determined from the kernel information cached locally, so as to facilitate the subsequent display of the update information. The update information is used to indicate the update record of the kernel selected by the user.

[0112] Finally, in the command line interface, list all update information for this version.

[0113] 3. Temporarily open the warehouse to install the software package.

[0114] First, after the user selects a kernel version, he can enter the command prompt for installing the kernel in the command line interface; the command prompt will be sent to the kernel-install tool.

[0115] Secondly, the kernel-install tool temporarily opens the repository based on the command prompt to install the kernel software package.

[0116] Step 510: Install the specified kernel.

[0117] This step is performed as follows: First, the kernel-install tool sends a request to the software package repository; Secondly, the software package repository determines the corresponding kernel installation package according to the kernel name carried in the software package acquisition request, and sends it to the client for installation; Finally, the client operating system installs the received kernel installation package and executes step 516.

[0118] Step 512: Query unregistered warehouses.

[0119] Specifically, querying the unregistered repository means: if the kernel-install tool determines that no registered kernel repository provides a valid kernel software package, then returning to the main logic of the software package management tool and executing step 514. Step 514: Install default.

[0120] The package management tool attempts to obtain the kernel installation package from the normal default repository and attempts to install the kernel installation package.

[0121] Step 516: End.

[0122] Based on the above steps, it can be seen that the kernel processing method provided in this specification provides a multi-version kernel and a supporting distribution method, which can efficiently and concisely manage multi-version kernels, and the increase in the number of versions does not increase the complexity. This method can be based on the original software package management tool of the operating system, through plug-ins (i.e., kernel-install tools) and reorganization of warehouses to achieve this function, with the characteristics of low cost and ease of use.

[0123] The principle of this method can be the query and management of the registered warehouse; based on this principle, a corresponding plug-in (i.e., kernel-install tool) is developed for dnf users, and the libdnf basic library can be called to implement the plug-in function. Based on this, this method implements the distribution of kernel software packages to different warehouses for isolation, and by writing a plug-in tool to extract all kernel version information, users can quickly obtain kernel software packages through the collection tool.

[0124] Corresponding to the above method embodiment, this specification also provides a kernel processing system embodiment, Figure 6FIG. 1 shows a schematic diagram of a structure of a kernel processing system provided by an embodiment of the present specification. Figure 6 As shown, the kernel processing system includes: a kernel management unit 602 and a kernel storage unit 604; The kernel storage unit 604 is configured to receive an information acquisition request sent by the kernel management unit 602, and based on the information acquisition request, determine the kernel information of the operating system kernels stored in the multiple kernel storage modules, and send the kernel information of the multiple operating system kernels to the kernel management unit 602; The kernel management unit 602 is configured to determine an information display request for a target operating system kernel, and based on the information display request, determine the target operating system kernel from multiple operating system kernels, determine multiple kernel information obtained from the kernel storage unit 604, select kernel information of the target operating system kernel from the multiple kernel information, and display the kernel information.

[0125] Optionally, the target operating system kernel is the multiple operating system kernels; The kernel management unit 602 is further configured to: receiving an information display request for the target operating system kernel, and determining the target operating system kernel from the multiple operating system kernels; The kernel information of the multiple operating system kernels obtained from the kernel storage unit 604 is determined as target kernel information, and the target kernel information is displayed.

[0126] Optionally, the kernel management unit 602 is further configured to: receiving an information display request for the target operating system kernel, wherein the information display request includes a target kernel identifier of the target operating system kernel; Determine at least one operating system kernel corresponding to the target kernel identifier from the multiple operating system kernels, and determine the at least one operating system kernel as the target operating system kernel; Determine the kernel information of the multiple operating system kernels obtained from the kernel storage unit 604; From the multiple kernel information, kernel update information corresponding to the target operating system kernel is determined, and the kernel update information is displayed.

[0127] Optionally, the kernel management unit 602 is a kernel management unit 602 in a client; The kernel management unit 602 is further configured to: An information display interface in the client corresponding to the kernel management unit 602 is determined, and the target kernel information is displayed using the information display interface.

[0128] Optionally, the kernel storage unit 604 is a kernel storage service client; The kernel management unit 602 is further configured to: In response to a kernel installation request for the kernel of the operating system to be installed, determining a kernel acquisition request based on a kernel identifier of the kernel of the operating system to be installed, and sending the kernel acquisition request to the kernel storage service end; Receive the operating system kernel file of the operating system kernel to be installed, which is sent by the kernel storage service client in response to the kernel acquisition request, and install the operating system kernel file.

[0129] Optionally, the kernel management unit 602 is a kernel management unit 602 in a client, and the client includes an information processing unit associated with the kernel management unit 602; The kernel management unit 602 is further configured to: Using the information processing unit, configuring module configuration information of multiple kernel storage modules in the kernel storage unit on the client, wherein the multiple kernel storage modules are used to store operating system kernel files of the multiple operating system kernels and the kernel information; Based on the module configuration information, the multiple operating system kernels are determined from the multiple kernel storage modules, and kernel information of the multiple operating system kernels is obtained.

[0130] Optionally, the kernel storage unit 604 is further configured to: Receiving a kernel acquisition request sent by the kernel management unit 602, wherein the kernel acquisition request carries a kernel identifier of the operating system kernel to be installed; Determine an operating system kernel file of the operating system kernel stored in the multiple kernel storage modules, and determine the operating system kernel file of the operating system kernel to be installed from the multiple operating system kernel files based on the kernel identifier of the operating system kernel to be installed; The operating system kernel file of the operating system kernel to be installed is sent to the kernel management unit 602, so that the kernel management unit 602 installs the operating system kernel file of the operating system kernel to be installed.

[0131] Optionally, the kernel storage unit 604 is further configured to: Determine storage space occupancy information of multiple operating system kernels to be screened, and determine the operating system to be screened whose storage space occupancy information is greater than or equal to a preset occupancy information threshold as the operating system kernel; From the multiple kernel storage modules, a target kernel storage module corresponding to each operating system kernel is determined, and each operating system kernel is stored in the target kernel storage module, wherein one operating system kernel corresponds to one target kernel storage module.

[0132] One or more embodiments of the present specification provide a kernel management unit in a kernel processing system, which can obtain kernel information of multiple operating system kernels from a kernel storage unit in advance; when receiving an information display request for a target operating system kernel, it can respond to the information display request, determine the target operating system kernel from multiple operating system kernels, and determine the target kernel information of the target operating system kernel from the kernel information of the multiple operating system kernels, and finally display the target kernel information to the user, thereby achieving efficient determination of the kernel information of the operating system kernel and avoiding the problem of incompatibility between the application and the operating system kernel when the user runs the computer application due to the inability to simply and quickly determine the kernel information such as the version and attributes of the operating system kernel.

[0133] The above is a schematic scheme of a kernel processing system of this embodiment. It should be noted that the technical scheme of the kernel processing system and the technical scheme of any of the above-mentioned kernel processing methods belong to the same concept, and the details not described in detail in the technical scheme of the kernel processing system can be referred to the description of the technical scheme of any of the above-mentioned kernel processing methods.

[0134] Figure 7 The block diagram of a computing device 700 according to an embodiment of the present specification is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.

[0135] The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0136] In one embodiment of the present specification, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0137] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 700 may also be a mobile or stationary server.

[0138] The processor 720 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of any one of the above-mentioned kernel processing methods.

[0139] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computing device embodiment, since it is basically similar to any of the above-mentioned kernel processing method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of any of the above-mentioned kernel processing method embodiments.

[0140] An embodiment of the present specification further provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of any one of the above-mentioned kernel processing methods when executed by a processor.

[0141] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computer-readable storage medium embodiment, since it is basically similar to any of the above-mentioned kernel processing method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of any of the above-mentioned kernel processing method embodiments.

[0142] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which implements the steps of any one of the above-mentioned kernel processing methods when executed by a processor.

[0143] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of any of the above-mentioned kernel processing methods belong to the same concept, and the details not described in detail in the technical scheme of the computer program product can be referred to the description of the technical scheme of any of the above-mentioned kernel processing methods.

[0144] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0145] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0146] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0147] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0148] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A kernel processing method, applied to a kernel management unit, comprising: In response to an information display request for a target operating system kernel, determining the target operating system kernel from a plurality of operating system kernels, wherein the plurality of operating system kernels are operating system kernels of a plurality of different versions; According to the kernel information of the multiple operating system kernels obtained from the kernel storage unit, the target kernel information of the target operating system kernel is determined and the target kernel information is displayed, wherein the kernel storage unit is used to store the kernel information of the multiple operating system kernels managed by the kernel management unit.

2. The kernel processing method according to claim 1, wherein the target operating system kernel is the plurality of operating system kernels; The step of determining the target operating system kernel from a plurality of operating system kernels in response to the information display request for the target operating system kernel comprises: receiving an information display request for the target operating system kernel, and determining the target operating system kernel from the multiple operating system kernels; The step of determining target kernel information of the target operating system kernel according to the kernel information of the multiple operating system kernels obtained from the kernel storage unit, and displaying the target kernel information includes: The kernel information of the multiple operating system kernels obtained from the kernel storage unit is determined as target kernel information, and the target kernel information is displayed.

3. The kernel processing method according to any one of claims 1 to 2, wherein in response to an information display request for a target operating system kernel, determining the target operating system kernel from a plurality of operating system kernels comprises: receiving an information display request for the target operating system kernel, wherein the information display request includes a target kernel identifier of the target operating system kernel; Determine at least one operating system kernel corresponding to the target kernel identifier from the multiple operating system kernels, and determine the at least one operating system kernel as the target operating system kernel; The step of determining target kernel information of the target operating system kernel according to the kernel information of the multiple operating system kernels obtained from the kernel storage unit, and displaying the target kernel information includes: Determining the kernel information of the plurality of operating system kernels obtained from the kernel storage unit; From the multiple kernel information, kernel update information corresponding to the target operating system kernel is determined, and the kernel update information is displayed.

4. The kernel processing method according to any one of claims 1 to 2, wherein the kernel management unit is a kernel management unit in a client; The displaying of the target kernel information includes: An information display interface corresponding to the kernel management unit in the client is determined, and the target kernel information is displayed using the information display interface.

5. The kernel processing method according to any one of claims 1 to 2, wherein the kernel storage unit is a kernel storage service end; After determining the target kernel information of the target operating system kernel according to the kernel information of the multiple operating system kernels obtained from the kernel storage unit and displaying the target kernel information, the method further includes: In response to a kernel installation request for the kernel of the operating system to be installed, determining a kernel acquisition request based on a kernel identifier of the kernel of the operating system to be installed, and sending the kernel acquisition request to the kernel storage service end; Receive the operating system kernel file of the operating system kernel to be installed, which is sent by the kernel storage service client in response to the kernel acquisition request, and install the operating system kernel file.

6. The kernel processing method according to any one of claims 1 to 2, wherein the kernel management unit is a kernel management unit in a client, and the client includes an information processing unit associated with the kernel management unit; Before determining the target operating system kernel from a plurality of operating system kernels in response to the information display request for the target operating system kernel, the method further includes: Using the information processing unit, configuring module configuration information of multiple kernel storage modules in the kernel storage unit on the client, wherein the multiple kernel storage modules are used to store operating system kernel files of the multiple operating system kernels and the kernel information; Based on the module configuration information, the multiple operating system kernels are determined from the multiple kernel storage modules, and kernel information of the multiple operating system kernels is obtained.

7. A kernel processing method, applied to a kernel storage unit, comprising: receiving an information acquisition request sent by a kernel management unit, and determining kernel information of an operating system kernel stored in a plurality of kernel storage modules based on the information acquisition request; The kernel information of multiple operating system kernels is sent to the kernel management unit, so that the kernel management unit executes the kernel processing method of claim 1 based on the kernel information.

8. The kernel processing method according to claim 7, after sending the kernel information of the multiple operating system kernels to the kernel management unit, further comprising: Receiving a kernel acquisition request sent by the kernel management unit, wherein the kernel acquisition request carries a kernel identifier of the operating system kernel to be installed; Determine an operating system kernel file of the operating system kernel stored in the multiple kernel storage modules, and determine the operating system kernel file of the operating system kernel to be installed from the multiple operating system kernel files based on the kernel identifier of the operating system kernel to be installed; The operating system kernel file of the operating system kernel to be installed is sent to the kernel management unit, so that the kernel management unit installs the operating system kernel file of the operating system kernel to be installed.

9. The kernel processing method according to claim 7, before determining the kernel information of the operating system kernel stored in the plurality of kernel storage modules based on the information acquisition request, further comprising: Determine storage space occupancy information of multiple operating system kernels to be screened, and determine the operating system to be screened whose storage space occupancy information is greater than or equal to a preset occupancy information threshold as the operating system kernel; From the multiple kernel storage modules, a target kernel storage module corresponding to each operating system kernel is determined, and each operating system kernel is stored in the target kernel storage module, wherein one operating system kernel corresponds to one target kernel storage module.

10. A kernel processing system, the system comprising a kernel management unit and a kernel storage unit; The kernel storage unit is configured to receive an information acquisition request sent by the kernel management unit, and based on the information acquisition request, determine the kernel information of the operating system kernels stored in the multiple kernel storage modules, and send the kernel information of the multiple operating system kernels to the kernel management unit; The kernel management unit is configured to determine an information display request for a target operating system kernel, and based on the information display request, determine the target operating system kernel from multiple operating system kernels, determine multiple kernel information obtained from a kernel storage unit, select kernel information of the target operating system kernel from the multiple kernel information, and display the kernel information.

11. A computing device comprising: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the method described in any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium storing a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 9.

13. A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method, device and system for automatically deploying and configuring servers in batches

    CN111427624A

  • Kernel reinforcement system and method, cloud server, client, electronic equipment and storage medium

    CN111614628A

  • Drive installation package generation method and device supporting multiple kernel versions, and drive installation method and device supporting multiple kernel versions

    CN113031958A

  • Method and device for starting application program

    CN114296835A

  • Simulator version installation package generation method and device and storage medium

    CN115202726A