How Disk.sys gets loaded after USBSTOR.sys for USB Mass Storage Device

Hi,

I have a Sony USB Memory Stick Walkman. I have developed my own USBSTOR.sys
using DDK USB Bulk driver. I can read Config/interface info.

How does Disk.sys gets loaded after USBSTOR.sys? I mean How this GenDisk id
is generated? Does USBSTOR.sys need to create PDO for Disk.sys? Does USBSTOR
uses IRP_MN_QUERY_RELATIONS (BusRelations) to create PDO?

THanks.

Yes, you will need to enumerate a PDO for each LUN that is on your
device.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Atul Hedaoo
Sent: Tuesday, February 08, 2005 12:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How Disk.sys gets loaded after USBSTOR.sys for USB Mass
Storage Device

Hi,

I have a Sony USB Memory Stick Walkman. I have developed my own
USBSTOR.sys
using DDK USB Bulk driver. I can read Config/interface info.

How does Disk.sys gets loaded after USBSTOR.sys? I mean How this
GenDisk id
is generated? Does USBSTOR.sys need to create PDO for Disk.sys? Does
USBSTOR
uses IRP_MN_QUERY_RELATIONS (BusRelations) to create PDO?

THanks.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

> How does Disk.sys gets loaded after USBSTOR.sys? I mean How this GenDisk id

is generated?

USBSTOR sees the config descriptor of the device, and sees that it is a disk.

Does USBSTOR.sys need to create PDO for Disk.sys?

Yes it does. It creates a child PDO, on which the disk is built.

uses IRP_MN_QUERY_RELATIONS (BusRelations) to create PDO?

Yes, as usually for PDOs.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com