scsiport will probably always return the same PDOs it reported the first
time because, to it, the surprise remove is completely bogus. Any bus
driver knows wehther or not the device is present (as long as the bus is
enumerable) - it doesn’t depend on getting a surprise remove IRP to
figure this out.
a bus filter can add its own PDOs into the device relations, can attach
filters to the PDOs reported by the bus driver, and can remove its own
PDOs from the device relations. There’s really not a provision for
something that attempts to force devices to be deleted in order to hide
them.
-p
-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Wednesday, September 11, 2002 10:40 AM
To: NT Developers Interest List
Subject: [ntdev] RE: IoInvalidateDeviceRelations and disks
Did I say delete? The point is that scsiport is not aware of the actions
taken by his filter driver. At a minimum there is a device object
reference count that is hanging around. I suspect he is seeing the
surprise remove irp, and perhaps the initial remove irp, but not the
final pdo remove irp, due to the reference count issue. On
re-enumeration scsiport is reporting back the same pdos it reported the
first time.
-----Original Message-----
From: Peter Wieland [mailto:xxxxx@windows.microsoft.com]
Sent: Wednesday, September 11, 2002 11:58 AM
To: NT Developers Interest List
Subject: [ntdev] RE: IoInvalidateDeviceRelations and disks
deleting the device objects of another driver is probably not
a good idea.
-p
-----Original Message-----
From: Mark Roddy [mailto:xxxxx@hollistech.com]
Sent: Wednesday, September 11, 2002 5:42 AM
To: NT Developers Interest List
Subject: [ntdev] RE: IoInvalidateDeviceRelations and disks
As you are ‘outside the box’ here, you may have to take on
some of the
actions of PnP itself, such as removing the device objects you have
claimed don’t exist anymore.
===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032
-----Original Message-----
From: “Omri”
> To: “NT Developers Interest List”
> Date: Tue, 10 Sep 2002 18:50:08 -0400
> Subject: [ntdev] RE: IoInvalidateDeviceRelations and disks
>
> > Thank you for your response, now I understand the problems thanks to
> > you
> > 
> >
> > since I am a Bus filter and the actual allocation of device
> object is
> > done in the Bus driver itself (the scsi controller) how can
> I return a
>
> > new pointer to the Pnp in such a case is there a way to work around
> > this problem?
> >
> > Omri
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@hollistech.com To
> > unsubscribe send a blank email to %%email.unsub%%
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@microsoft.com To
> unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@stratus.com To
> unsubscribe send a blank email to %%email.unsub%%
>
—
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%