[go: up one dir, main page]

CN113010151A - Method, system, equipment and medium for traversing dynamic options in HII database - Google Patents

Method, system, equipment and medium for traversing dynamic options in HII database Download PDF

Info

Publication number
CN113010151A
CN113010151A CN202110271423.7A CN202110271423A CN113010151A CN 113010151 A CN113010151 A CN 113010151A CN 202110271423 A CN202110271423 A CN 202110271423A CN 113010151 A CN113010151 A CN 113010151A
Authority
CN
China
Prior art keywords
dynamic
offset
option
static table
options
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110271423.7A
Other languages
Chinese (zh)
Other versions
CN113010151B (en
Inventor
翟占平
王晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110271423.7A priority Critical patent/CN113010151B/en
Publication of CN113010151A publication Critical patent/CN113010151A/en
Application granted granted Critical
Publication of CN113010151B publication Critical patent/CN113010151B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种遍历HII数据库中动态选项的方法、系统、设备和存储介质,方法包括:建立动态选项的静态表,将每一类动态选项中的一个动态选项作为参考成员,并确定参考成员的基础偏移量;判断是否存在动态选项拓扑参数,响应于存在动态选项拓扑参数,根据动态选项拓扑参数确定对应的静态表;通过全局唯一标识符确定目标HII页面,获取目标HII页面的成员的原始偏移量,并根据动态选项拓扑参数和原始偏移量确定新的偏移量;以及将新的偏移量与基础偏移量进行匹配,响应于新的偏移量与基础偏移量匹配成功,向成员设置对应的接口以完成定制化内容。本发明通过引入动态选项生成时所建立的拓扑参数,能够有效的提高遍历速度,减少开机时间。

Figure 202110271423

The invention discloses a method, system, device and storage medium for traversing dynamic options in an HII database. The method includes: establishing a static table of dynamic options, taking one dynamic option in each type of dynamic options as a reference member, and determining the reference The basic offset of the member; determine whether there is a dynamic option topology parameter, in response to the existence of the dynamic option topology parameter, determine the corresponding static table according to the dynamic option topology parameter; determine the target HII page through the global unique identifier, and obtain the members of the target HII page the original offset, and determine the new offset according to the dynamic option topology parameters and the original offset; and match the new offset with the base offset, in response to the new offset and the base offset If the quantity matching is successful, set the corresponding interface to the member to complete the customized content. The invention can effectively improve the traversal speed and reduce the startup time by introducing the topology parameters established when the dynamic option is generated.

Figure 202110271423

Description

Method, system, equipment and medium for traversing dynamic options in HII database
Technical Field
The present invention relates to the field of servers, and more particularly, to a method, system, computer device, and readable medium for traversing dynamic options in an HII database.
Background
For the customization requirement of a BIOS (Basic Input Output System) control interface, an original device manufacturer needs to develop a set of modular platform scheme, which needs to be decoupled from hardware microcode provided by device providers such as Intel and AMD, and also needs to be decoupled from firmware source codes provided by underlying firmware developers such as AMI and instyde, so as to ensure the portability of a developed BIOS control interface module. The way that the previous modifications are made on the basis of the source code is therefore to be converted into a separate module without modifying the source code. The code for controlling the BIOS setting interface is used as an independent module for development, the dependence on source codes is reduced, the style and the content of the BIOS setting interface of different platforms and different products are basically the same, and the module is concise, easy to modify and easy to maintain as much as possible.
In the existing scheme, before a server is started and enters a BIOS control Interface, a module for traversing an HII (Human Interface Infrastructure) database is called, options stated in a static table in the module are searched by traversing a generated HII database, and corresponding HII member attribute setting is executed, so that a customized function is realized. In the existing module for traversing HII, the members in the static table and the HII are compared in the starting process by establishing the option static table, and if the members are consistent, corresponding attribute setting is executed. For dynamically generated options, all possible dynamic options need to be listed in the static table. The static table is complicated to establish and maintain, all HII members are compared one by one in the starting traversal process, the traversal process comprises more repeated actions, and the starting time is prolonged.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a system, a computer device, and a computer readable storage medium for traversing dynamic options in an HII database, which introduce a traversal process for identifying dynamically generated options based on an existing traversal search framework, reserve an interface for identifying dynamic options, and effectively reduce the workload of newly added control options, and reduce the workload from nearly thousands of static table members covering all dynamic options to dozens of static table members, thereby reducing the time for traversing dynamic options and increasing the startup speed of a server.
Based on the above object, an aspect of the embodiments of the present invention provides a method for traversing dynamic options in an HII database, including the following steps: establishing a static table of dynamic options, taking one dynamic option in each type of dynamic options as a reference member, and determining the basic offset of the reference member; judging whether a dynamic option topology parameter exists or not, responding to the existence of the dynamic option topology parameter, and determining a corresponding static table according to the dynamic option topology parameter; determining a target HII page through a global unique identifier, acquiring the original offset of members of the target HII page, and determining a new offset according to the dynamic option topology parameter and the original offset; and matching the new offset with the basic offset, and setting a corresponding interface for the member to finish customizing content in response to the successful matching of the new offset and the basic offset.
In some embodiments, the creating a static table of dynamic options includes: and taking the initial global variable of each type of dynamic option as a mark, and establishing the relation between the mark and each dynamic option in the category to which the mark belongs.
In some embodiments, the determining the corresponding static table according to the topology parameter of the dynamic option includes: and determining a mark according to the topology parameters of the dynamic options, and finding each dynamic option in the category to which the dynamic option belongs according to the mark.
In some embodiments, the determining the corresponding static table according to the topology parameter of the dynamic option includes: and setting a Boolean type dynamic option mark according to the static table.
In some embodiments, the determining a new offset from the dynamic option topology parameter and the original offset comprises: and subtracting the product of the dynamic option topological parameter and the dynamic option mark from the original offset to obtain a new offset.
In some embodiments, the matching the new offset to the base offset comprises: and judging whether the difference value between the new offset and the basic offset in the static table is smaller than a threshold value, and responding to the fact that the difference value between the new offset and the basic offset in the static table is smaller than the threshold value, and then the matching is successful.
In some embodiments, the method further comprises: and judging whether each member in the static table completes the matching of the offset or not, and setting a completion identifier for the static table in response to that each member in the static table completes the matching of the offset.
In another aspect of the embodiments of the present invention, a system for traversing dynamic options in an HII database is provided, including: the establishing module is used for configuring a static table for establishing dynamic options, taking one dynamic option in each type of dynamic options as a reference member and determining the basic offset of the reference member; the judging module is configured to judge whether a dynamic option topology parameter exists or not, respond to the existence of the dynamic option topology parameter, and determine a corresponding static table according to the dynamic option topology parameter; the computing module is configured to determine a target HII page through a global unique identifier, obtain an original offset of a member of the target HII page, and determine a new offset according to the dynamic option topology parameter and the original offset; and the execution module is configured to match the new offset with the basic offset, and in response to successful matching of the new offset with the basic offset, set a corresponding interface to the member to complete customized content.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: by introducing the topological parameters established during the generation of the dynamic options, the corresponding options are quickly searched through the parameters in the traversal process, the traversal speed can be effectively improved, and the starting time is reduced; the patent also provides a configuration method of the optimized static table of the dynamic options, and all the dynamic options can be found only by setting the initial option in one type of dynamic options as reference, so that the workload of module development and maintenance is reduced, and the working efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a diagram illustrating an embodiment of a method for traversing dynamic options in an HII database according to the present invention;
FIG. 2 is a schematic diagram of a hardware structure of an embodiment of a computer apparatus for traversing dynamic options in an HII database according to the present invention;
FIG. 3 is a diagram of an embodiment of a computer storage medium for traversing dynamic options in an HII database provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above, a first aspect of the embodiments of the present invention provides an embodiment of a method for traversing dynamic options in an HII database. Fig. 1 is a schematic diagram illustrating an embodiment of a method for traversing dynamic options in an HII database according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, establishing a static table of dynamic options, taking one dynamic option in each type of dynamic options as a reference member, and determining the basic offset of the reference member;
s2, judging whether a dynamic option topology parameter exists or not, responding to the existence of the dynamic option topology parameter, and determining a corresponding static table according to the dynamic option topology parameter;
s3, determining a target HII page through the global unique identifier, acquiring the original offset of the members of the target HII page, and determining a new offset according to the dynamic option topology parameters and the original offset; and
and S4, matching the new offset with the basic offset, and setting a corresponding interface for the member to finish the customized content in response to the successful matching of the new offset and the basic offset.
Briefly, the HII database is comprised of a number of HII pages, each of which contains a number of members, each member having a corresponding attribute. These attributes determine whether the member is visible in the BIOS control interface, selectable, and displayed. The hierarchical relationship between the HII page and the members is basically the same as the hierarchical level displayed by the BIOS control interface, so that the traversal time can be reduced by searching the HII page first and then searching the HII members.
In this patent, HII pages are mainly searched by globally unique identifiers, and HII members corresponding to each HII page are mainly searched by variable ID (identification), offset address and TOKEN (a section of hexadecimal number stated in the HII specification for identifying HII members). And after the corresponding member is found, providing a corresponding operation interface to realize the customization requirement of the option.
And establishing a static table of the dynamic options, taking one dynamic option in each type of dynamic options as a reference member, and determining the basic offset of the reference member. The static table accurately describes the attributes of each option, including variable ID, offset address, and TOKEN. For dynamically generated options, the static table needs to list all possible dynamically generated options as far as possible and describe the attributes of the options. The static table in the embodiment of the invention also needs to declare one of each type of dynamic options as a reference member, the variable name of the dynamic options uses an array form, the array length is the length of the topological parameter of the dynamic options, the default is the maximum value supported by a hardware theory, and the number of the supported dynamic options is updated to the number supported by actual hardware after the computer is started. The topology parameters are derived from identification and link of a source code for hardware in the startup process, and a group of variables which are dynamically updated include a memory topology, a hard disk topology, a PCIe (Peripheral component interconnect express) topology, a VMD (Volume Management Device) topology, and the like.
In some embodiments, the creating a static table of dynamic options includes: and taking the initial global variable of each type of dynamic option as a mark, and establishing the relation between the mark and each dynamic option in the category to which the mark belongs. Specifically, the static table of the dynamic options is established by taking the starting global variables of each type of dynamic options, that is, the first processor, the first memory, and the first PCIe interface that satisfy the host boot condition, that is, the corresponding first dynamic option. When the traversal function is transferred for processing, the topology parameters when the dynamic options are established are transmitted, and then the traversal function searches all the dynamic options related to the dynamic options according to the topology parameters. Therefore, different configuration conditions of the host can be ignored, and all the dynamic options can be found as long as one of the dynamic options can be found.
And judging whether the dynamic option topology parameters exist or not, responding to the existence of the dynamic option topology parameters, and determining a corresponding static table according to the dynamic option topology parameters.
In some embodiments, the determining the corresponding static table according to the topology parameter of the dynamic option includes: and determining a mark according to the topology parameters of the dynamic options, and finding each dynamic option in the category to which the dynamic option belongs according to the mark. The embodiment of the invention adds an input parameter, namely a dynamic option topology parameter, to the traversal function. After the parameter is introduced, the original loop structure for traversing the HII members is adjusted, when each member in the HII page is traversed, one member is not searched, one member is marked, a member strategy is executed, all dynamic options related to the dynamic options are searched instead through the marks of the dynamic options, jump search is carried out according to the topology parameter during traversal, and after all the dynamic options related to the dynamic options are searched, the dynamic options are marked to be completed.
In some embodiments, the determining the corresponding static table according to the topology parameter of the dynamic option includes: and setting a Boolean type dynamic option mark according to the static table. And if the traversal function receives the topology parameters of the dynamic options, marking the static table corresponding to the topology parameters, and setting a Boolean type dynamic option mark.
And determining a target HII page through the global unique identifier, acquiring the original offset of the members of the target HII page, and determining a new offset according to the dynamic option topology parameter and the original offset. The target HII page is searched for by the globally unique identifier, which belongs to the prior art and will not be described herein. After traversing to a target HII page, searching the members in the current HII page, acquiring the external attributes of the HII members, and then acquiring the member attributes declared in the static table.
In some embodiments, the determining a new offset from the dynamic option topology parameter and the original offset comprises: and subtracting the product of the dynamic option topological parameter and the dynamic option mark from the original offset to obtain a new offset. New offset-original offset-dynamic option topology parameter.
And matching the new offset with the basic offset, and setting a corresponding interface for the member to finish the customized content in response to the successful matching of the new offset and the basic offset.
In some embodiments, the matching the new offset to the base offset comprises: and judging whether the difference value between the new offset and the basic offset in the static table is smaller than a threshold value, and responding to the fact that the difference value between the new offset and the basic offset in the static table is smaller than the threshold value, and then the matching is successful.
In some embodiments, the method further comprises: and judging whether each member in the static table completes the matching of the offset or not, and setting a completion identifier for the static table in response to that each member in the static table completes the matching of the offset. The static table corresponding to the target HII page is searched for, and the static table with the completion identifier is firstly excluded.
And after the matching is successful, providing an HII member setting interface to finish the customized content. After the HII member is set, judging whether the topology parameters of the dynamic options are used completely, if so, marking the dynamic options in the static table as completed, and ignoring the member in the subsequent traversal; if not, point to the next member in the topology parameters of the dynamic option, and then continue to traverse the remaining HII members. The above search process of the dynamic options can be performed synchronously, and if there are multiple dynamic options defined in the corresponding static table in one HII page, the dynamic options can be found.
The embodiment of the invention introduces the traversal flow for identifying the dynamically generated options on the basis of the existing traversal search framework, reserves the interfaces for identifying the dynamic options, can effectively reduce the workload of newly added control options, and reduces the workload from nearly thousands of static list members covering all dynamic options to dozens of static list members. The time for traversing the dynamic options is reduced, and the starting speed of the server is improved.
It should be particularly noted that, the steps in the embodiments of the method for traversing dynamic options in the HII database may be intersected, replaced, added, or deleted, and therefore, these reasonable permutation and combination transformations should also belong to the scope of the present invention for the method for traversing dynamic options in the HII database, and should not limit the scope of the present invention to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a system for traversing dynamic options in an HII database, including: the establishing module is used for configuring a static table for establishing dynamic options, taking one dynamic option in each type of dynamic options as a reference member and determining the basic offset of the reference member; the judging module is configured to judge whether a dynamic option topology parameter exists or not, respond to the existence of the dynamic option topology parameter, and determine a corresponding static table according to the dynamic option topology parameter; the computing module is configured to determine a target HII page through a global unique identifier, obtain an original offset of a member of the target HII page, and determine a new offset according to the dynamic option topology parameter and the original offset; and the execution module is configured to match the new offset with the basic offset, and in response to successful matching of the new offset with the basic offset, set a corresponding interface to the member to complete customized content.
In some embodiments, the establishing module is configured to: and taking the initial global variable of each type of dynamic option as a mark, and establishing the relation between the mark and each dynamic option in the category to which the mark belongs.
In some embodiments, the determining module is configured to: and determining a mark according to the topology parameters of the dynamic options, and finding each dynamic option in the category to which the dynamic option belongs according to the mark.
In some embodiments, the determining module is configured to: and setting a Boolean type dynamic option mark according to the static table.
In some embodiments, the computing module is configured to: and subtracting the product of the dynamic option topological parameter and the dynamic option mark from the original offset to obtain a new offset.
In some embodiments, the execution module is configured to: and judging whether the difference value between the new offset and the basic offset in the static table is smaller than a threshold value, and responding to the fact that the difference value between the new offset and the basic offset in the static table is smaller than the threshold value, and then the matching is successful.
In some embodiments, the system further comprises an identification module configured to: and judging whether each member in the static table completes the matching of the offset or not, and setting a completion identifier for the static table in response to that each member in the static table completes the matching of the offset.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, establishing a static table of dynamic options, taking one dynamic option in each type of dynamic options as a reference member, and determining the basic offset of the reference member; s2, judging whether a dynamic option topology parameter exists or not, responding to the existence of the dynamic option topology parameter, and determining a corresponding static table according to the dynamic option topology parameter; s3, determining a target HII page through the global unique identifier, acquiring the original offset of the members of the target HII page, and determining a new offset according to the dynamic option topology parameters and the original offset; and S4, matching the new offset with the basic offset, and setting a corresponding interface for the member to complete the customized content in response to the successful matching of the new offset and the basic offset.
In some embodiments, the creating a static table of dynamic options includes: and taking the initial global variable of each type of dynamic option as a mark, and establishing the relation between the mark and each dynamic option in the category to which the mark belongs.
In some embodiments, the determining the corresponding static table according to the topology parameter of the dynamic option includes: and determining a mark according to the topology parameters of the dynamic options, and finding each dynamic option in the category to which the dynamic option belongs according to the mark.
In some embodiments, the determining the corresponding static table according to the topology parameter of the dynamic option includes: and setting a Boolean type dynamic option mark according to the static table.
In some embodiments, the determining a new offset from the dynamic option topology parameter and the original offset comprises: and subtracting the product of the dynamic option topological parameter and the dynamic option mark from the original offset to obtain a new offset.
In some embodiments, the matching the new offset to the base offset comprises: and judging whether the difference value between the new offset and the basic offset in the static table is smaller than a threshold value, and responding to the fact that the difference value between the new offset and the basic offset in the static table is smaller than the threshold value, and then the matching is successful.
In some embodiments, the steps further comprise: and judging whether each member in the static table completes the matching of the offset or not, and setting a completion identifier for the static table in response to that each member in the static table completes the matching of the offset.
Fig. 2 is a schematic hardware structural diagram of an embodiment of the computer device for traversing dynamic options in the HII database according to the present invention.
Taking the apparatus shown in fig. 2 as an example, the apparatus includes a processor 201 and a memory 202, and may further include: an input device 203 and an output device 204.
The processor 201, the memory 202, the input device 203 and the output device 204 may be connected by a bus or other means, and fig. 2 illustrates the connection by a bus as an example.
The memory 202, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method of traversing dynamic options in a HII database in the embodiments of the present application. The processor 201 executes various functional applications of the server and data processing, i.e., the method of traversing dynamic options in the HII database of the above-described method embodiments, by running non-volatile software programs, instructions, and modules stored in the memory 202.
The memory 202 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of a method of traversing dynamic options in the HII database, and the like. Further, the memory 202 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 202 may optionally include memory located remotely from processor 201, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 203 may receive information such as a user name and a password that are input. The output device 204 may include a display device such as a display screen.
Program instructions/modules corresponding to one or more methods of traversing dynamic options in the HII database are stored in the memory 202 and, when executed by the processor 201, perform the method of traversing dynamic options in the HII database in any of the method embodiments described above.
Any embodiment of a computer device implementing the method for traversing dynamic options in an HII database described above may achieve the same or similar effects as any of the preceding method embodiments corresponding thereto.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Fig. 3 is a schematic diagram of an embodiment of a computer storage medium for traversing dynamic options in an HII database according to the present invention. Taking the computer storage medium as shown in fig. 3 as an example, the computer readable storage medium 3 stores a computer program 31 which, when executed by a processor, performs the method as described above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program of the method for traversing dynamic options in the HII database can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1.一种遍历HII数据库中动态选项的方法,其特征在于,包括以下步骤:1. a method for traversing dynamic options in the HII database, is characterized in that, comprises the following steps: 建立动态选项的静态表,将每一类动态选项中的一个动态选项作为参考成员,并确定所述参考成员的基础偏移量;establishing a static table of dynamic options, using one dynamic option in each type of dynamic options as a reference member, and determining the base offset of the reference member; 判断是否存在动态选项拓扑参数,响应于存在动态选项拓扑参数,根据所述动态选项拓扑参数确定对应的静态表;judging whether there is a dynamic option topology parameter, and in response to the presence of the dynamic option topology parameter, determining a corresponding static table according to the dynamic option topology parameter; 通过全局唯一标识符确定目标HII页面,获取所述目标HII页面的成员的原始偏移量,并根据所述动态选项拓扑参数和所述原始偏移量确定新的偏移量;以及Determine a target HII page by a globally unique identifier, obtain the original offset of a member of the target HII page, and determine a new offset according to the dynamic option topology parameter and the original offset; and 将所述新的偏移量与所述基础偏移量进行匹配,响应于所述新的偏移量与所述基础偏移量匹配成功,向所述成员设置对应的接口以完成定制化内容。Matching the new offset with the base offset, and in response to the new offset being successfully matched with the base offset, set a corresponding interface to the member to complete the customized content . 2.根据权利要求1所述的方法,其特征在于,所述建立动态选项的静态表包括:2. The method according to claim 1, wherein the static table for establishing dynamic options comprises: 取每一类动态选项的起始全局变量作为标志,建立所述标志与所属类别中的每一个动态选项的联系。The initial global variable of each type of dynamic option is taken as a flag, and the relationship between the flag and each dynamic option in the class to which it belongs is established. 3.根据权利要求2所述的方法,其特征在于,所述根据所述动态选项拓扑参数确定对应的静态表包括:3. The method according to claim 2, wherein the determining the corresponding static table according to the dynamic option topology parameter comprises: 根据所述动态选项拓扑参数确定标志,并根据所述标志找到所属类别中的每一个动态选项。A flag is determined according to the dynamic option topology parameter, and each dynamic option in the category to which it belongs is found according to the flag. 4.根据权利要求1所述的方法,其特征在于,所述根据所述动态选项拓扑参数确定对应的静态表包括:4. The method according to claim 1, wherein the determining the corresponding static table according to the dynamic option topology parameter comprises: 根据所述静态表设置布尔型的动态选项标志。A boolean dynamic option flag is set according to the static table. 5.根据权利要求4所述的方法,其特征在于,所述根据所述动态选项拓扑参数和所述原始偏移量确定新的偏移量包括:5. The method according to claim 4, wherein the determining a new offset according to the dynamic option topology parameter and the original offset comprises: 用所述原始偏移量减去所述动态选项拓扑参数与所述动态选项标志的乘积得到新的偏移量。A new offset is obtained by subtracting the product of the dynamic option topology parameter and the dynamic option flag from the original offset. 6.根据权利要求1所述的方法,其特征在于,所述将所述新的偏移量与所述基础偏移量进行匹配包括:6. The method of claim 1, wherein the matching the new offset with the base offset comprises: 判断所述新的偏移量和所述静态表中的所述基础偏移量的差值是否小于阈值,响应于所述新的偏移量和所述静态表中的所述基础偏移量的差值小于阈值则匹配成功。judging whether the difference between the new offset and the base offset in the static table is less than a threshold, in response to the new offset and the base offset in the static table If the difference is less than the threshold, the match is successful. 7.根据权利要求1所述的方法,其特征在于,还包括:7. The method of claim 1, further comprising: 判断所述静态表中的每个成员是否均完成了偏移量的匹配,响应于所述静态表中的每个成员均完成了偏移量的匹配,对所述静态表设置完成标识。It is judged whether each member in the static table has completed the offset matching, and in response that each member in the static table has completed the offset matching, a completion flag is set for the static table. 8.一种遍历HII数据库中动态选项的系统,其特征在于,包括:8. A system for traversing dynamic options in the HII database, comprising: 建立模块,配置用于建立动态选项的静态表,将每一类动态选项中的一个动态选项作为参考成员,并确定所述参考成员的基础偏移量;establishing a module, configuring a static table for establishing dynamic options, using one dynamic option in each type of dynamic options as a reference member, and determining the base offset of the reference member; 判断模块,配置用于判断是否存在动态选项拓扑参数,响应于存在动态选项拓扑参数,根据所述动态选项拓扑参数确定对应的静态表;a judgment module, configured to judge whether there is a dynamic option topology parameter, and in response to the presence of the dynamic option topology parameter, determine a corresponding static table according to the dynamic option topology parameter; 计算模块,配置用于通过全局唯一标识符确定目标HII页面,获取所述目标HII页面的成员的原始偏移量,并根据所述动态选项拓扑参数和所述原始偏移量确定新的偏移量;以及a calculation module, configured to determine a target HII page by using a global unique identifier, obtain an original offset of a member of the target HII page, and determine a new offset according to the dynamic option topology parameter and the original offset amount; and 执行模块,配置用于将所述新的偏移量与所述基础偏移量进行匹配,响应于所述新的偏移量与所述基础偏移量匹配成功,向所述成员设置对应的接口以完成定制化内容。The execution module is configured to match the new offset with the base offset, and in response to the successful matching between the new offset and the base offset, set the corresponding member to the member. interface to complete customized content. 9.一种计算机设备,其特征在于,包括:9. A computer equipment, characterized in that, comprising: 至少一个处理器;以及at least one processor; and 存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现权利要求1-7任意一项所述方法的步骤。a memory storing computer instructions executable on the processor, the instructions implementing the steps of the method of any one of claims 1-7 when executed by the processor. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-7任意一项所述方法的步骤。10. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1-7 are implemented.
CN202110271423.7A 2021-03-12 2021-03-12 A method, system, device and medium for traversing dynamic options in HII database Active CN113010151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110271423.7A CN113010151B (en) 2021-03-12 2021-03-12 A method, system, device and medium for traversing dynamic options in HII database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110271423.7A CN113010151B (en) 2021-03-12 2021-03-12 A method, system, device and medium for traversing dynamic options in HII database

Publications (2)

Publication Number Publication Date
CN113010151A true CN113010151A (en) 2021-06-22
CN113010151B CN113010151B (en) 2023-09-01

Family

ID=76406365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110271423.7A Active CN113010151B (en) 2021-03-12 2021-03-12 A method, system, device and medium for traversing dynamic options in HII database

Country Status (1)

Country Link
CN (1) CN113010151B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116149951A (en) * 2023-02-24 2023-05-23 宁畅信息产业(北京)有限公司 Topology information acquisition method and device of basic input/output system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371819A (en) * 2016-08-19 2017-02-01 联想(北京)有限公司 Parameter acquisition method and apparatus, and electronic device
CN110609715A (en) * 2019-08-13 2019-12-24 平安国际智慧城市科技股份有限公司 Random option page display method and device, computer equipment and storage medium
US10540151B1 (en) * 2017-07-28 2020-01-21 American Medatrends International, LLC Graphical customization of a firmware-provided user interface (UI)
CN112083851A (en) * 2020-08-06 2020-12-15 曙光信息产业(北京)有限公司 Interface positioning method and device for BIOS (basic input output System) configuration options, server and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371819A (en) * 2016-08-19 2017-02-01 联想(北京)有限公司 Parameter acquisition method and apparatus, and electronic device
US10540151B1 (en) * 2017-07-28 2020-01-21 American Medatrends International, LLC Graphical customization of a firmware-provided user interface (UI)
CN110609715A (en) * 2019-08-13 2019-12-24 平安国际智慧城市科技股份有限公司 Random option page display method and device, computer equipment and storage medium
CN112083851A (en) * 2020-08-06 2020-12-15 曙光信息产业(北京)有限公司 Interface positioning method and device for BIOS (basic input output System) configuration options, server and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张拓智等: "基于UEFI的基础加电BIT软件设计与实现", 航空计算技术, vol. 48, no. 05 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116149951A (en) * 2023-02-24 2023-05-23 宁畅信息产业(北京)有限公司 Topology information acquisition method and device of basic input/output system
CN116149951B (en) * 2023-02-24 2024-11-19 宁畅信息产业(北京)有限公司 Topology information acquisition method and device of basic input/output system

Also Published As

Publication number Publication date
CN113010151B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN111045655B (en) Page rendering method and device, rendering server and storage medium
CN108762769B (en) Microservice application arranging and deploying method and device and computer terminal
CN106301829B (en) Method and device for network service expansion
CN109754072B (en) Processing method of network offline model, artificial intelligence processing device and related products
CN111309332A (en) File content on-demand loading method and device, electronic equipment and storage medium
CN107864053A (en) Dynamic Configuration and device based on zookeeper
CN113064625B (en) A method, device, equipment and medium for out-of-band BIOS upgrade
CN113010151A (en) Method, system, equipment and medium for traversing dynamic options in HII database
CN113495723B (en) Method, device and storage medium for calling functional component
CN112068879A (en) Method and device for constructing client application development framework based on configuration
CN118689895B (en) Database processing method and device based on generated language model
CN114721640A (en) Code completion method and device, storage medium, processor and terminal
WO2021169811A1 (en) Method, apparatus, system and device for generating special effects, and storage medium
CN104767635B (en) A method of mirror image is total to for more equipment based on order line dynamic replacement
CN118012523A (en) Default value configuration method, device, equipment and medium
CN112464596B (en) Regression testing method, system, device and readable storage medium
JP2019008799A (en) System and method for merging source data from source application into target data of target application
CN108008941A (en) The deep chain interface automatic generation method and deep chain of a kind of Android application perform method
CN112965740B (en) Asset information export method and device
CN118656057B (en) Data processing method and device based on intelligent application support platform
CN118605884B (en) Intelligent agent application object generation method, device, computer equipment and storage medium
WO2025020555A1 (en) Plug-in configuration method and apparatus, and device and storage medium
CN114912057A (en) Configuration method, device, electronic device and medium of page component
CN114546403A (en) Development project construction method and device, storage medium and computer equipment
CN117370630A (en) Data blood edge generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant