Solved

Dynamic reloading device drivers

Posted on 2004-10-01
4
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

628 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