Solved

Dynamic reloading device drivers

Posted on 2004-10-01
4
161 Views
Last Modified: 2010-04-15
I writing a device driver and I load it dynamically now, but when I make changes I need to reboot to get the new version to run. I can delete the old file and replace it with the new version. But the old version is still running, how can I get the old version out of memory without rebooting?

Thanks
Bill
0
Comment
Question by:bnemmers
4 Comments
 
LVL 22

Accepted Solution

by:
grg99 earned 250 total points
ID: 12206753
What's the operating system?

Windows NT thru XP have the ability to modify system files on the fly without rebooting, DOS and Windows 95 thru Me do not.

In general, it's not possible to "unload" a device driver unless it has an explicit entry point and code for unloading itself.  Most device drivers grab onto some interrupt or I/O chain, and the OS doesnt know about this and can't undo it in general-- there has to be specific code in the driver that unhooks itself from anything it has hooked into.

0
 
LVL 1

Author Comment

by:bnemmers
ID: 12213686
I using Win2k, I'll try putting some code to unload from the driver itself.
On a different note, do you know how to get the user name from a driver if you know the the process ID?

Thanks
Bill
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now