Tracing using configurable reflection chaining
US-2024411664-A1 · Dec 12, 2024 · US
US2016004545A1 · US · A1
| Field | Value |
|---|---|
| Publication number | US-2016004545-A1 |
| Application number | US-201514856195-A |
| Country | US |
| Kind code | A1 |
| Filing date | Sep 16, 2015 |
| Priority date | Apr 30, 2014 |
| Publication date | Jan 7, 2016 |
| Grant date | — |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
The invention discloses a method and a device for loading a driver, where the method includes: determining a model identifier corresponding to a component included in an embedded device, and searching for a driver associated with the model identifier; loading a found driver into a memory of the embedded device, and controlling the driver to drive the component. In this solution, when a driver is loaded onto a component onto which a driver is to be loaded, an associated driver is searched for according to a model identifier of the component onto which the driver is to be loaded, and then the associated driver may be loaded. A combination of drivers of multiple components does not need to be searched for, or a combination of identifiers corresponding to drivers of multiple components does not need to be generated. Therefore, consumed time is reduced and loading efficiency is improved.
Opening claim text (preview).
What is claimed is: 1 . A method for loading a driver, the method comprising: determining a model identifier corresponding to a component comprised in an embedded device, wherein the component is a component onto which a driver is to be loaded; searching for a driver associated with the model identifier corresponding to the component; and loading a found driver into a memory of the embedded device. 2 . The method according to claim 1 , wherein searching for a driver associated with the model identifier corresponding to the component comprises: searching for, by using a minimum operating system mirror of the embedded device, the driver associated with the model identifier corresponding to the component, wherein the minimum operating system mirror is used to start the embedded device, run a service function, and load the driver of the component comprised in the embedded device. 3 . The method according to claim 2 , wherein before searching for a driver associated with the model identifier corresponding to the component, the method further comprises: generating the minimum operating system mirror of the embedded device. 4 . The method according to claim 3 , wherein generating the minimum operating system mirror of the embedded device comprises: compiling original code that is developed based on the service function of the embedded device, to generate an initial minimum operating system mirror, wherein the initial minimum operating system mirror comprises an executable file and a file in an executable and linkable format, and the original code is used to implement the service function of the embedded device; extracting a symbol table from the file in the executable and linkable format, wherein the file in the executable and linkable format is comprised in the initial minimum operating system mirror; generating a C file according to the symbol table, and adding the generated C file to the original code; and compiling the original code to which the C file has been added, so as to obtain the minimum operating system mirror of the embedded device. 5 . The method according to claim 1 , wherein before searching for a driver associated with the model identifier corresponding to the component, the method further comprises: determining respective model identifiers of components of a same type with the component and each driver corresponding to each of the components of the same type, wherein the components of the same type are components that have a same attribute or function with the component; and storing an association relationship between a determined model identifier of each component of the same type with the component and a determined driver of the component of the same type. 6 . The method according to claim 5 , wherein storing an association relationship between a determined model identifier of each component of the same type with the component and a determined driver of the component of the same type comprises: compiling the driver of each component of the same type into a file in a preset format, wherein the file in the preset format has an attribute of relocation; storing the file in the preset format according to a preset rule, and acquiring a logical address in which the file in the preset format is stored; and storing a correspondence between anyone of the model identifiers and the acquired logical address. 7 . The method according to claim 6 , wherein an address field of the file in the preset format is an initial preset value, and after storing the file in the preset format according to a preset rule, the method further comprises: changing the initial preset value in the address field of the file in the preset format to the logical address. 8 . The method according to claim 6 , wherein searching for a driver associated with the model identifier corresponding to the component comprises: determining, from the stored association relationship, a logical address that is corresponding to the model identifier corresponding to the component; and using a file in a preset format as the driver associated with the model identifier corresponding to the component, wherein the file in the preset format is stored in the determined logical address. 9 . The method according to claim 7 , wherein loading a found driver into a memory of the embedded device comprises: determining a physical address of the driver loaded into the memory of the embedded device; and modifying an address field in the driver from a logical address to the physical address. 10 . The method according to claim 2 , wherein loading a found driver into a memory of the embedded device comprises: loading the found driver into the memory of the embedded device by using the minimum operating system mirror in a dynamic loading manner. 11 . The method according to claim 10 , wherein loading the found driver into the memory of the embedded device by using the minimum operating system mirror in a dynamic loading manner comprises: copying the found driver into the memory of the embedded device by using a function and a global variable in the minimum operating system mirror; and based on the minimum operating system mirror and in a form of a function pointer, invoking an interface function in the found driver and linking the driver that is copied into the memory of the embedded device. 12 . The method according to claim 1 , further comprising: controlling the driver loaded into the memory of the embedded device to drive the component. 13 . An embedded device for loading a driver, the device comprising: a determining unit, configured to determine a model identifier corresponding to a component comprised in the embedded device, wherein the component is a component onto which a driver is to be loaded; a searching unit, configured to search for a driver associated with the model identifier corresponding to the component; and a loading unit, configured to load a found driver into a memory of the embedded device. 14 . The embedded device according to claim 13 , wherein the searching unit is configured to: search for, by using a minimum operating system mirror of the embedded device, the driver associated with the model identifier corresponding to the component, wherein the minimum operating system mirror is used to start the embedded device, run a service function, and load the driver of the component comprised in the embedded device. 15 . The embedded device according to claim 14 , further comprising a generating unit configured to generate the minimum operating system mirror of the embedded device. 16 . The embedded device according to claim 15 , wherein the generating unit comprises: a compiling module, configured to compile original code that is developed based on the service function of the embedded device, to generate an initial minimum operating system mirror, wherein the initial minimum operating system mirror comprises an executable file and a file in an executable and linkable format, and the original code is used to implement the service function of the embedded device; an extracting module, configured to extract a symbol table from the file in the executable and linkable format, wherein the file in the executable and linkable format is comprised in the initial minimum operating system mirror, and generate a C file according to the symbol table, and add the generated C file to the original code; and wherein the compiling module is further configured to compile the original code to which the C file has been added, so as to obtain the minimum operating system mirror of the embe
Configuring for program initiating, e.g. using registry, configuration files · CPC title
Compilation · CPC title
Configuring for operating with peripheral devices; Loading of device drivers · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.