disk driver looks for HDD

Hello everyone,

did anyone know the answer of this question:
how does the disk driver know the existing of harddisks on a scsi
controller? maybe it reads registry for the harddisks’ information
written by scsi controller’s driver or some other drivers? if so,
where and how is the information stored? if not, then what’s the mechanism?

Thanks in advance.


Best regards,
metawest mailto:xxxxx@cmmail.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

For windows 2000 and later: the scsiport/miniport bus driver enumerates the
scsi bus it is managing and creates PDOs for targets (TID/LUNs) on the bus.
Each PDO is identified based on the information obtained by the enumeration
process, (i.e. SCSI inquiry commands,) so that for example a disk will have
a PnP identifier such as SCSI\Disk. The PnP manager requests information
from scsiport/miniport bus driver about the PDOs it has created. Using this
information the PnP manager calls (and loads if required) the drivers
registered to manage various SCSI devices at their AddDevice routines for
each PDO enumerated by the scsiport driver.

Mark Roddy
Windows 2000/NT Consultant
Hollis Technology Solutions
xxxxx@hollistech.com
603 321 1032
www.hollistech.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of metawest
Sent: Monday, April 23, 2001 5:50 AM
To: NT Developers Interest List
Subject: [ntdev] disk driver looks for HDD

Hello everyone,

did anyone know the answer of this question:
how does the disk driver know the existing of harddisks on a scsi
controller? maybe it reads registry for the harddisks’ information
written by scsi controller’s driver or some other drivers? if so,
where and how is the information stored? if not, then what’s
the mechanism?

Thanks in advance.


Best regards,
metawest mailto:xxxxx@cmmail.com


You are currently subscribed to ntdev as: xxxxx@tellink.net
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

> did anyone know the answer of this question:

how does the disk driver know the existing of harddisks on a scsi
controller? maybe it reads registry for the harddisks’ information
written by scsi controller’s driver or some other drivers? if so,
where and how is the information stored? if not, then what’s the

“Use the source, Luke”.
It is provided in the DDK.
The SCSI disk driver opens all SCSI ports and retrieves the INQUIRY data for
all busses (SCSIPORT have built it during initialization and kept it in some
memory).
The SCSI disk driver distinguishes disks from non-disks on the INQUIRY data
basis and creates a device object for each SCSI LUN which is a disk.

The above is NT4 way.
w2k uses PnP there - SCSIPORT enumerates the SCSI bus, then the disk driver
is connected to disk devnodes by the INF file and the device ID returned by
the SCSIPORT (which is in turn based on the INQUIRY data).

Max


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