How can I force the Pnp Manager to send SCSIOP_INQUIRY messages to scan my scsi miniport driver for new hardware?
Regards,
Zoltan
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Use IOCTL_SCSI_RESCAN_BUS.
PnP enumeration does not map 1:1 to SCSI INQUIRY - SCSIPORT seems to use the existing INQUIRY data for relation queries sometimes, thus servicing IRP_MN_QUERY_RELATIONS without the real SCSI rescan.
IOCTL_SCSI_RESCAN_BUS is also NT4-compatible.
Max
----- Original Message -----
From: xxxxx@yahoo.com
To: NT Developers Interest List
Sent: Wednesday, June 27, 2001 11:02 PM
Subject: [ntdev] Force PnP amanger to send SCSIOP_INGUIRY to my driver
How can I force the Pnp Manager to send SCSIOP_INQUIRY messages to scan my scsi miniport driver for new hardware?
Regards,
Zoltan
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
It depends on where you are initiating this request from.
-
IoInvalidateDeviceRelations using the PDO of the adapter (kernel mode.)
-
IOCTL_SCSI_RESCAN_BUS targeted at the adapter FDO (user or kernel mode.)
Both of these are difficult to do from a miniport.
- From the miniport you should instead call ScsiPortNotification with
BusChangeDetected as the NOTIFICATION_TYPE.
-----Original Message-----
From: xxxxx@yahoo.com [mailto:xxxxx@yahoo.com]
Sent: Wednesday, June 27, 2001 3:02 PM
To: NT Developers Interest List
Subject: [ntdev] Force PnP amanger to send SCSIOP_INGUIRY to my driver
How can I force the Pnp Manager to send SCSIOP_INQUIRY messages to scan my
scsi miniport driver for new hardware?
Regards,
Zoltan
You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hi,
It will be much better idea pre-create removable hard disk drive(s) on
your virtual SCSI bus and just report correct SCSI sense information (is
media present and so long) all the time. At least Windows NT4 will not
claim your disk device if it was not present on the emulated SCSI bus in
the very begining. And you can initiate rescan calling
IOCTL_SCSI_RESCAN_BUS from your UserMode control application when you
insert new virtual media to virtual drive.
At least I do (did) so…
Regards,
Anton Kolomyeytsev
CoolDev.Com - Toolkits for Network & Storage Software Developers
“KoolSockets” & “KoolStorage” - TDI Client, Kernel Sockets, SCSI miniport,
iSCSI
http://www.CoolDev.Com, xxxxx@CoolDev.Com,
xxxxx@CoolDev.com
How can I force the Pnp Manager to send SCSIOP_INQUIRY messages to scan =
my scsi miniport driver for new hardware?
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com