enumerate children disk PDOs of a parent controller;

In my driver I need to know all the disks PDOs enumerated by a specific controller. I have parent controller’s FDO/PDO available?

Thanks.

You can do this in user mode, not kernel

d

tiny phone keyboard + fat thumbs = you do the muth

-----Original Message-----
From: xxxxx@yahoo.com
Sent: Friday, April 09, 2010 12:56 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] enumerate children disk PDOs of a parent controller;

In my driver I need to know all the disks PDOs enumerated by a specific controller. I have parent controller’s FDO/PDO available?

Thanks.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

ok. I need to identify a particular disk (in kernel mode). Do you have any suggestions how can I do that? I tried using Pnp notification (GUID_DEVINTERFACE_STORAGEPORT) to get notify upon the arrival of the disks and then send identify to it (using IOCTL_SCSI_MINIPORT + SMART_RCV_DRIVE_DATA) to check if it is the interesting one but I received 0xC0000010L status. Any suggestions? Thanks.

GUID_DEVINTERFACE_STORAGEPORT would be the storage port FDO device interface, if you want disks, have you used GUID_DEVINTERFACE_DISK?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Sunday, April 11, 2010 11:00 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] enumerate children disk PDOs of a parent controller;

ok. I need to identify a particular disk (in kernel mode). Do you have any suggestions how can I do that? I tried using Pnp notification (GUID_DEVINTERFACE_STORAGEPORT) to get notify upon the arrival of the disks and then send identify to it (using IOCTL_SCSI_MINIPORT + SMART_RCV_DRIVE_DATA) to check if it is the interesting one but I received 0xC0000010L status. Any suggestions? Thanks.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

The disks I’m interested in do not have a class driver so I cannot use GUID_DEVINTERFACE_DISK. [Thanks for the quick reply]

Well you need to find out what devinterface the non class driver enables for the disks and subscribe to that

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Sunday, April 11, 2010 11:14 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] enumerate children disk PDOs of a parent controller;

The disks I’m interested in do not have a class driver so I cannot use GUID_DEVINTERFACE_DISK. [Thanks for the quick reply]


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer