- is there any way to tell W2K to NEVER try and rebalance the resource to
my device
Yes, if you fail IRP_MN_STOP_DEVICE, your device will not be stopped for
resource rebalance.
- can I do this and still let the system shut down my device when a user
requests it (like using the stop button on the PCMCIA tray tool). I think
what I need is to know the initiator of the stop request
IRP_MN_STOP_DEVICE is a system IRP and it’s only sent by the PnP manager.
I don’t know what you mean by device shutdown. Are you talking about device
ejection? If yes then you can do that. Device ejection is query removal.
- standby mode and hibernation are a whole other can of worms, it seems
like a system will not conserve power (like on a laptop that really needs
to) unless I let power IRP’s do their thing, which means pass them down to
the PCMCIA controller (which I assume shuts off card power, loosing my
state), hopefully users will have to cope with the fact that their security
state may go away across suspends (or maybe I should just not let the
PCMCIA controller power down my card, ever)
You could do that. The bus driver can go to a low power mode only if all
the devices on that bus say Okay to go that low power state. If you fail
any set power IRP to go to lower mode, then your device will not be power
down ever, except, for some catastrophic cases such as battery discharge
and so on.
- is there any test tool that can force a Pnp resource rebalance, I’ve
seen it happen in the debugger, but don’t know how to make it happen on
demand for testing
We have recently come up with a tool that kind of simulates resource
rebalance operation. The tool installs itself as an upper device
filter and sends a stop and start IRP to see how your device is handling
that. It’s on this page http://www.microsoft.com/hwdev/driver/ - called
Plug and Play Driver Test.
-Eliyas
-----Original Message-----
From: Jan Bottorff [mailto:xxxxx@pmatrix.com]
Sent: Tuesday, May 16, 2000 6:04 PM
To: NT Developers Interest List
Subject: [ntdev] Pnp resource rebalancing in W2K
Ok you W2K Pnp wizards, I’ve been working on a driver for let’s say a
security related device.
This device is often a PCMCIA card form factor. If I understand things
right, W2K is free to stop my device at any time, and then start it back
up, potentially with different resources. The problem I have is: my device
has internal context that can not just be extracted and saved, and then
restored. Applications pass things like passwords to it, and then it’s
“logged in”. Even if I queue app requests during a resource rebalance, I
can’t get it’s state back to where it was. This is by design, and
considered a security “feature”. I also don’t really know WHEN it’s in a
state that can’t be restored. The apps just passes magic data packets to
it, and those packets influence internal state.
So I guss my questions are:
-
is there any way to tell W2K to NEVER try and rebalance the resource to
my device
-
can I do this and still let the system shut down my device when a user
requests it (like using the stop button on the PCMCIA tray tool). I think
what I need is to know the initiator of the stop request
-
standby mode and hibernation are a whole other can of worms, it seems
like a system will not conserve power (like on a laptop that really needs
to) unless I let power IRP’s do their thing, which means pass them down to
the PCMCIA controller (which I assume shuts off card power, loosing my
state), hopefully users will have to cope with the fact that their security
state may go away across suspends (or maybe I should just not let the
PCMCIA controller power down my card, ever)
-
is there any test tool that can force a Pnp resource rebalance, I’ve
seen it happen in the debugger, but don’t know how to make it happen on
demand for testing
Any ideas or feedback appreciated!
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)