how to write miniport support hotswap

Hello

I want to write a miniport driver support hotswap. But I donot know how to registe a hotswap device(such as disk) to system. When I plug or unplug a device ,how do I do?

I write a vxd in which I call COMFIGMG_Reenumerate_DevNode(), But it is no effect,If you have some experience in this fact,please help me
Thanks for any advise

>

I write a vxd in which I call COMFIGMG_Reenumerate_DevNode(), But it
is no effect,If you have some experience in this fact,please help me
Thanks for any advise

A Vxd? So this would be for a non-NT platform?

===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032

In Windows 2k and upper, miniport can use scsiportnotification with Rescan
option. That will initiate the scsiport’s rescan process for the current
controller.

-----Original Message-----
From: Mark Roddy [mailto:xxxxx@hollistech.com]
Sent: Thursday, November 21, 2002 11:34 AM
To: NT Developers Interest List
Subject: [ntdev] Re: how to write miniport support hotswap

I write a vxd in which I call COMFIGMG_Reenumerate_DevNode(), But it
is no effect,If you have some experience in this fact,please help me
Thanks for any advise

A Vxd? So this would be for a non-NT platform?

===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032


You are currently subscribed to ntdev as: xxxxx@lsil.com
To unsubscribe send a blank email to %%email.unsub%%

Thank you for your help.???

In Windows 2k and upper, miniport can use scsiportnotification with Rescan
option. That will initiate the scsiport’s rescan process for the current
controller.

-----Original Message-----
From: Mark Roddy [mailto:xxxxx@hollistech.com]
Sent: Thursday, November 21, 2002 11:34 AM
To: NT Developers Interest List
Subject: [ntdev] Re: how to write miniport support hotswap

>
> I write a vxd in which I call COMFIGMG_Reenumerate_DevNode(), But it
> is no effect,If you have some experience in this fact,please help me
> Thanks for any advise
>

A Vxd? So this would be for a non-NT platform?

===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032


You are currently subscribed to ntdev as: xxxxx@lsil.com
To unsubscribe send a blank email to email.unsub


You are currently subscribed to ntdev as: xxxxx@microaurora.net
To unsubscribe send a blank email to %%email.unsub%%

I have much the same question.

I have a SCSI miniport driver where I perform a
ScsiPortNotification(BusChangeDetected ,). The problem I encounter is
that the Disk Management (MMC) module complains that a disk was removed
before it was stopped. I get this annoying dialog asking to take some
corrective action.

I have searched the DDK, MSDN, and the Knowledge Base looking for the
correct method of stopping and then removing a device before I notify the
PNP module that I have removed a device from the system. The only thing I
have found that works is the system setup call SetupDiRemoveDevice().

I’m hoping that this is not the method that I am required to use. The
problem with this setup call is that it requires a call to
SetupEnumDeviceInfo.

Is there another method to gracefully remove and add plugable disk
devices.

Thanks
Dave

You could filter the inquiry data returned by the disk device so that it indicates that it is
removable media, and then NT will supply ejection support, but it will also severly impact IO
performance. Otherwise you have to live with the popup messages. As the storage subsystem
treats non-removable disk devices as data-cacheable entities, hot removing them will likely
cause data loss unless you have the disk mirrored, or unless you flush/unmount the volume(s)
first.

Unless these are really backup/archive media devices, hot remove ought to be an extraordinary
condition, right?

===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032

-----Original Message-----
From: “David”
To: “NT Developers Interest List”
Date: Mon, 16 Dec 2002 21:02:19 -0500
Subject: [ntdev] Re: how to write miniport support hotswap

> I have much the same question.
>
> I have a SCSI miniport driver where I perform a
> ScsiPortNotification(BusChangeDetected ,). The problem I encounter is
> that the Disk Management (MMC) module complains that a disk was removed
> before it was stopped. I get this annoying dialog asking to take some
> corrective action.
>
> I have searched the DDK, MSDN, and the Knowledge Base looking for the
> correct method of stopping and then removing a device before I notify
> the
> PNP module that I have removed a device from the system. The only
> thing I
> have found that works is the system setup call SetupDiRemoveDevice().
>
> I’m hoping that this is not the method that I am required to use. The
> problem with this setup call is that it requires a call to
> SetupEnumDeviceInfo.
>
> Is there another method to gracefully remove and add plugable disk
> devices.
>
> Thanks
> Dave
>
> —
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to %%email.unsub%%

The disk - since it has caches and such - must be first asked to
be removed by PnP. This is done by SetupDi functions you have
mentioned.

Max

----- Original Message -----
From: “David”
To: “NT Developers Interest List”
Sent: Tuesday, December 17, 2002 5:02 AM
Subject: [ntdev] Re: how to write miniport support hotswap

> I have much the same question.
>
> I have a SCSI miniport driver where I perform a
> ScsiPortNotification(BusChangeDetected ,). The problem I encounter
is
> that the Disk Management (MMC) module complains that a disk was
removed
> before it was stopped. I get this annoying dialog asking to take
some
> corrective action.
>
> I have searched the DDK, MSDN, and the Knowledge Base looking for
the
> correct method of stopping and then removing a device before I
notify the
> PNP module that I have removed a device from the system. The only
thing I
> have found that works is the system setup call
SetupDiRemoveDevice().
>
> I’m hoping that this is not the method that I am required to use.
The
> problem with this setup call is that it requires a call to
> SetupEnumDeviceInfo.
>
> Is there another method to gracefully remove and add plugable disk
> devices.
>
> Thanks
> Dave
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>