CN102650942A - Drive program installing method and electronic device - Google Patents
Drive program installing method and electronic device Download PDFInfo
- Publication number
- CN102650942A CN102650942A CN2011100440154A CN201110044015A CN102650942A CN 102650942 A CN102650942 A CN 102650942A CN 2011100440154 A CN2011100440154 A CN 2011100440154A CN 201110044015 A CN201110044015 A CN 201110044015A CN 102650942 A CN102650942 A CN 102650942A
- Authority
- CN
- China
- Prior art keywords
- registration table
- kernel services
- kernel
- priority
- thread
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a drive program installing method and an electronic device. The method comprises the steps as follows: when the condition that the drive program corresponding to a virtual device is installed is detected, kernel services are started; an operation interface is provided by the kernel services, and can be used for operations to a registry in an operation system; in the kernel services, the writing operation permission for operations to the registry is obtained by dint of priority; and on the basis of the writing operation permission, the installing information of the drive program is written into the registry through the operation interface. During the application of the technical scheme provided by the invention, the kernel services can obtain the writing operation permission, which is endowed by the operation system, for operations to the registry through the operation interface by dint of own priority, so that during the drive program installing process, the registry can be modified directly to avoid signature on the drive program.
Description
Technical field
The present invention relates to computer technology, be meant a kind of method and electronic equipment of install driver especially.
Background technology
In operating system, the applied more and more of virtual unit on safety or bottom control.Because virtual unit does not have actual hardware and often needs upgrading, so the Autograph Session of the driver of these virtual units is often expired, has brought trouble to the user.
In the prior art, in order to reduce the cost that uses virtual unit, the driver of some virtual units is not applied for signature, but adopts this technology can cause in the process of install driver, generating safety instruction.If the signature of application driver then can cause producing extra-pay, and need sign once more when upgrading driver afterwards.
Summary of the invention
The present invention provides a kind of method and electronic equipment of install driver, can on virtual unit in the install driver process, avoid the technology that driver is signed.
For this reason, embodiments of the invention provide a kind of method of install driver, are applied to computing machine, comprising: when detecting the driver that the virtual unit correspondence is installed, start kernel services; Said kernel services provides an operation-interface, and can operate the registration table in the operating system through this operation-interface; The write operation authority of in said kernel services, utilizing priority to obtain said registration table is operated; In said registration table, write the mount message of said driver through said operation-interface according to said write operation authority.
In the described method; The write operation authority of in said kernel services, utilizing priority to obtain said registration table is operated specifically comprises: said kernel services has a kernel priority identifier, and the priority that said kernel priority identifier has identified said kernel services is higher than any application service corresponding priorities; Said kernel services after said operating system is discerned said kernel priority identifier, the write operation authority that said registration table is operated of obtaining that said operating system gives.
In the described method, said kernel services comprises at least one thread, and each thread obtains a write operation authority that said registration table is operated in order in said kernel services, to utilize priority; And each thread can write the mount message of the corresponding driver of a virtual unit according to said write operation authority in said registration table.
In the described method, the mount message that in said registration table, writes the corresponding driver of virtual unit also comprises afterwards: when needs are deleted said virtual unit; The deletion action authority of in said kernel services, utilizing prioritization to obtain said registration table is operated; From said registration table, delete the mount message of the corresponding driver of said virtual unit according to said deletion action authority; Delete said kernel services.
In the described method, said kernel services comprises at least one thread, and each thread obtains a deletion action authority that said registration table is operated in order in said kernel services, to utilize priority; And each thread can be deleted the mount message of the corresponding driver of said virtual unit according to said deletion action authority from said registration table.
A kind of electronic equipment; Comprise: the kernel services start unit is used for when detecting the driver that the virtual unit correspondence is installed, starting a kernel services; Said kernel services provides operation-interface, and can operate the registration table in the operating system through this operation-interface; The first operating right acquiring unit is used for the write operation authority of utilizing priority to obtain said registration table is operated in said kernel services; The signature enrolling unit is used for writing to said registration table through said operation-interface according to said write operation authority the mount message of said driver.
In the described electronic equipment; The said first operating right acquiring unit also comprises: priority unit; Be used to deposit a kernel priority identifier, said kernel priority identifier shows that the priority of corresponding said kernel services is higher than any application service corresponding priorities; Write operation unit is used for after said operating system is discerned said kernel priority identifier, the write operation authority that said registration table is operated of obtaining that said operating system gives.
In the described electronic equipment; The said first operating right acquiring unit also comprises: first thread-management unit; Be used to comprise at least one thread, each thread obtains a write operation authority that said registration table is operated in order in said kernel services, to utilize priority; And each thread can notify said write operation unit in said registration table, to write the mount message of the corresponding driver of a virtual unit according to said write operation authority.
In the described electronic equipment, also comprise: the second operating right acquiring unit is used for when the said virtual unit of needs deletion; The deletion action authority of in said kernel services, utilizing prioritization to obtain said registration table is operated; The signature delete cells is used for according to the mount message of said deletion action authority from the corresponding driver of the said virtual unit of said registration table deletion.
In the described electronic equipment, also comprise: second thread-management unit, be used to comprise at least one thread, each thread obtains a deletion action authority that said registration table is operated in order in said kernel services, to utilize priority; And each thread can notify said signature delete cells from said registration table, to delete the mount message of the corresponding driver of said virtual unit according to said deletion action authority.
The beneficial effect of technique scheme of the present invention is following: use the technical scheme that is provided; Because kernel services can be obtained the write operation authority that operation-interface is operated registration table of passing through that operating system gives according to the priority of himself, therefore can the direct modification registration table in the process of install driver driver be signed avoiding.
Description of drawings
Fig. 1 is the method flow synoptic diagram of a kind of install driver of the embodiment of the invention;
Fig. 2 is an embodiment of the invention electronic devices structure synoptic diagram.
Embodiment
For technical matters, technical scheme and advantage that the present invention will be solved is clearer, will combine accompanying drawing and specific embodiment to be described in detail below.
Embodiments of the invention provide a kind of method of install driver, and are as shown in Figure 1, are applied to computing machine, comprising:
Use the technical scheme that is provided; Because kernel services can be obtained the write operation authority that operation-interface is operated registration table of passing through that operating system gives according to the priority of himself, therefore can the direct modification registration table in the process of install driver driver be signed avoiding.
Wherein, The write operation authority of in kernel services, utilizing priority to obtain said registration table is operated specifically comprises: said kernel services has a kernel priority identifier, and said kernel priority identifier shows that the priority of corresponding said kernel services is higher than any application service corresponding priorities; Said kernel services after said operating system is discerned said kernel priority identifier, the write operation authority that said registration table is operated of obtaining that said operating system gives.
Kernel services comprises at least one thread, and each thread obtains a write operation authority that said registration table is operated in order in said kernel services, to utilize priority; And each thread can write the mount message of the corresponding driver of a virtual unit according to said write operation authority in said registration table.Wherein, specifically be the mount message that in the registration table device drives branch of registration table, writes driver.
The mount message that in said registration table, writes the corresponding driver of virtual unit also comprises afterwards: when needs are deleted said virtual unit; The deletion action authority of in said kernel services, utilizing prioritization to obtain said registration table is operated; From said registration table, delete the mount message of the corresponding driver of said virtual unit according to said deletion action authority; Delete said kernel services.
Kernel services comprises at least one thread, and each thread obtains a deletion action authority that said registration table is operated in order in said kernel services, to utilize priority; And each thread can be deleted the mount message of the corresponding driver of said virtual unit according to said deletion action authority from said registration table.
Corresponding, embodiments of the invention provide a kind of electronic equipment, and are as shown in Figure 2, comprising:
Kernel services start unit 201 is used for when detecting the driver that the virtual unit correspondence is installed, starting a kernel services, and said kernel services provides operation-interface, and can operate the registration table in the operating system through this operation-interface;
The first operating right acquiring unit 202 is used for the write operation authority of utilizing priority to obtain said registration table is operated in said kernel services;
Use the technical scheme that is provided; Because kernel services can be obtained the write operation authority that operation-interface is operated registration table of passing through that operating system gives according to the priority of himself, therefore can the direct modification registration table in the process of install driver driver be signed avoiding.
The first operating right acquiring unit 202 also comprises:
Priority unit is used to deposit a kernel priority identifier, and said kernel priority identifier shows that the priority of corresponding said kernel services is higher than any application service corresponding priorities;
Write operation unit is used for after said operating system is discerned said kernel priority identifier, the write operation authority that said registration table is operated of obtaining that said operating system gives.
The first operating right acquiring unit 202 also comprises:
First thread-management unit is used to comprise at least one thread, and each thread obtains a write operation authority that said registration table is operated in order in said kernel services, to utilize priority; And each thread can notify said write operation unit in said registration table, to write the mount message of the corresponding driver of a virtual unit according to said write operation authority.
Electronic equipment also comprises:
The second operating right acquiring unit is used for when the said virtual unit of needs deletion; The deletion action authority of in said kernel services, utilizing prioritization to obtain said registration table is operated;
The signature delete cells is used for according to the mount message of said deletion action authority from the corresponding driver of the said virtual unit of said registration table deletion.
And second thread-management unit is used to comprise at least one thread, and each thread obtains a deletion action authority that said registration table is operated in order in said kernel services, to utilize priority; And each thread can notify said signature delete cells from said registration table, to delete the mount message of the corresponding driver of said virtual unit according to said deletion action authority.
Kernel services adopt the advantage after this programme to be: owing to can be obtained the write operation authority that operation-interface is operated registration table of passing through that operating system gives according to the priority of himself; Therefore can the direct modification registration table in the process of install driver and need not sign; And install driver and just can start; Do not need restarting operating systems, avoided driver is signed.By kernel services all are driven relevant registry information Delete All during unloading, delete kernel services self then, restart system and just can realize complete discharge.The drive installation of the virtual unit prompting that can not bear the signature all is static the completion, has reduced cost, has promoted user experience.
The above is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from principle according to the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.
Claims (10)
1. the method for an install driver is characterized in that, is applied to computing machine, comprising:
When detecting the driver that the virtual unit correspondence is installed, start kernel services; Said kernel services provides an operation-interface, and can operate the registration table in the operating system through this operation-interface;
The write operation authority of in said kernel services, utilizing priority to obtain said registration table is operated;
In said registration table, write the mount message of said driver through said operation-interface according to said write operation authority.
2. method according to claim 1 is characterized in that, the write operation authority of in said kernel services, utilizing priority to obtain said registration table is operated specifically comprises:
Said kernel services has a kernel priority identifier, and the priority that said kernel priority identifier has identified said kernel services is higher than any application service corresponding priorities;
Said kernel services after said operating system is discerned said kernel priority identifier, the write operation authority that said registration table is operated of obtaining that said operating system gives.
3. method according to claim 1 is characterized in that said kernel services comprises at least one thread, and each thread obtains a write operation authority that said registration table is operated in order in said kernel services, to utilize priority;
And each thread can write the mount message of the corresponding driver of a virtual unit according to said write operation authority in said registration table.
4. method according to claim 1 is characterized in that, the mount message that in said registration table, writes the corresponding driver of virtual unit also comprises afterwards:
When needs are deleted said virtual unit;
The deletion action authority of in said kernel services, utilizing prioritization to obtain said registration table is operated;
From said registration table, delete the mount message of the corresponding driver of said virtual unit according to said deletion action authority;
Delete said kernel services.
5. method according to claim 4 is characterized in that said kernel services comprises at least one thread, and each thread obtains a deletion action authority that said registration table is operated in order in said kernel services, to utilize priority;
And each thread can be deleted the mount message of the corresponding driver of said virtual unit according to said deletion action authority from said registration table.
6. an electronic equipment is characterized in that, comprising:
The kernel services start unit is used for when detecting the driver that the virtual unit correspondence is installed, starting a kernel services, and said kernel services provides operation-interface, and can operate the registration table in the operating system through this operation-interface;
The first operating right acquiring unit is used for the write operation authority of utilizing priority to obtain said registration table is operated in said kernel services;
The signature enrolling unit is used for writing to said registration table through said operation-interface according to said write operation authority the mount message of said driver.
7. electronic equipment according to claim 6 is characterized in that, the said first operating right acquiring unit also comprises:
Priority unit is used to deposit a kernel priority identifier, and said kernel priority identifier shows that the priority of corresponding said kernel services is higher than any application service corresponding priorities;
Write operation unit is used for after said operating system is discerned said kernel priority identifier, the write operation authority that said registration table is operated of obtaining that said operating system gives.
8. electronic equipment according to claim 7 is characterized in that, the said first operating right acquiring unit also comprises:
First thread-management unit is used to comprise at least one thread, and each thread obtains a write operation authority that said registration table is operated in order in said kernel services, to utilize priority;
And each thread can notify said write operation unit in said registration table, to write the mount message of the corresponding driver of a virtual unit according to said write operation authority.
9. electronic equipment according to claim 6 is characterized in that, also comprises:
The second operating right acquiring unit is used for when the said virtual unit of needs deletion;
The deletion action authority of in said kernel services, utilizing prioritization to obtain said registration table is operated;
The signature delete cells is used for according to the mount message of said deletion action authority from the corresponding driver of the said virtual unit of said registration table deletion.
10. electronic equipment according to claim 9 is characterized in that, also comprises:
Second thread-management unit is used to comprise at least one thread, and each thread obtains a deletion action authority that said registration table is operated in order in said kernel services, to utilize priority;
And each thread can notify said signature delete cells from said registration table, to delete the mount message of the corresponding driver of said virtual unit according to said deletion action authority.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110044015.4A CN102650942B (en) | 2011-02-23 | 2011-02-23 | A kind of method of install driver and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110044015.4A CN102650942B (en) | 2011-02-23 | 2011-02-23 | A kind of method of install driver and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102650942A true CN102650942A (en) | 2012-08-29 |
CN102650942B CN102650942B (en) | 2015-08-26 |
Family
ID=46692950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110044015.4A Active CN102650942B (en) | 2011-02-23 | 2011-02-23 | A kind of method of install driver and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102650942B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104166609A (en) * | 2014-08-27 | 2014-11-26 | 贝壳网际(北京)安全技术有限公司 | Computer hardware device repairing method and device |
CN106843917A (en) * | 2015-12-07 | 2017-06-13 | 珠海市君天电子科技有限公司 | Driver loading method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030118188A1 (en) * | 2001-12-26 | 2003-06-26 | Collier David C. | Apparatus and method for accessing material using an entity locked secure registry |
CN101593114A (en) * | 2008-05-30 | 2009-12-02 | 深圳艾科创新微电子有限公司 | A kind of UVC application automatic replacing system device driven |
CN101667236A (en) * | 2008-09-02 | 2010-03-10 | 北京瑞星国际软件有限公司 | Method and device for controlling driver installation |
-
2011
- 2011-02-23 CN CN201110044015.4A patent/CN102650942B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030118188A1 (en) * | 2001-12-26 | 2003-06-26 | Collier David C. | Apparatus and method for accessing material using an entity locked secure registry |
CN101593114A (en) * | 2008-05-30 | 2009-12-02 | 深圳艾科创新微电子有限公司 | A kind of UVC application automatic replacing system device driven |
CN101667236A (en) * | 2008-09-02 | 2010-03-10 | 北京瑞星国际软件有限公司 | Method and device for controlling driver installation |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104166609A (en) * | 2014-08-27 | 2014-11-26 | 贝壳网际(北京)安全技术有限公司 | Computer hardware device repairing method and device |
CN106843917A (en) * | 2015-12-07 | 2017-06-13 | 珠海市君天电子科技有限公司 | Driver loading method and device |
CN106843917B (en) * | 2015-12-07 | 2020-02-18 | 珠海豹趣科技有限公司 | Driver loading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102650942B (en) | 2015-08-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103795740A (en) | Downloading method of plug-in installation packages and downloading terminal | |
CN105183525A (en) | Upgrading method of system software and electronic equipment for implementing upgrading method | |
CN103870305A (en) | Software upgrading method of vehicle-mounted sound box with USB (Universal Serial Bus) interface/memory card interface | |
CN103927239A (en) | Method and device for restoring system of terminal equipment | |
CN107291510A (en) | A kind of Linux inter-vehicle information systems quick start method | |
CN103164260B (en) | Application management system and method for mobile terminal | |
WO2014166231A1 (en) | Method and device for setting application program state | |
CN104809400A (en) | Process protection method and device | |
WO2015120702A1 (en) | Method, device, and mobile terminal for cleaning up application process | |
WO2015062217A1 (en) | Connection processing method and device for peripheral in virtual desktop system | |
CN105912365A (en) | Method and system for updating mobile terminal system | |
CN103873516A (en) | HA method and system for improving usage rate of physical servers in cloud computing resource pool | |
WO2023092875A1 (en) | Intelligent port mapping method for wsl2 system | |
CN103997684A (en) | Method and device for updating operating system | |
CN103984585A (en) | Method for upgrading Linux kernel in running process of kernel module capable of being plugged in thermal mode | |
CN102650942A (en) | Drive program installing method and electronic device | |
CN104090746A (en) | Android system based application management method and device | |
CN113573344A (en) | SMF session detection method based on 5G and terminal | |
US20170199733A1 (en) | Method for terminal to update operating system, terminal and system | |
KR20160071260A (en) | Method for managing state of ECU in vehicle based on automotive open system architecture | |
CN103177213A (en) | Software bug fix method and software bug fix system | |
CN103970556A (en) | Updating method and system for power amplification software in radio remote equipment | |
CN101526928B (en) | Interface switching device of data card equipment based on preinstall drive module and method thereof | |
CN105487921A (en) | Task stack management method and device | |
CN102402440A (en) | Method and device for pushing and prompting of application program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |