The IOCTL_STORAGE_GET_LB_PROVISIONING_MAP_RESOURCES request is sent to the storage class driver to determine available and used mapping resources on a storage device.
IOCTL_STORAGE_GET_LB_PROVISIONING_MAP_RESOURCES Retrieves the hotplug configuration of the specified device. Returns a STORAGE_DEVICE_NUMBER structure that contains the FILE_DEVICE_XXX type, device number, and, for a partitionable device, the partition number assigned to a device by the driver when the device is started. Queries a storage device for detailed firmware information. Locks the device to prevent removal of the media.ĭetermines whether another device that the driver supports has been connected to the I/O bus, either since the system was booted or since the driver last processed this request.Īctivates a firmware image on a storage device.ĭownloads a firmware image to a storage device, but does not activate it. Specifies a maximum operational power consumption level for a storage device.Ĭauses the device to eject the media if the device supports ejection capabilities.
IOCTLĭetermines whether the media has changed on a removable-media device that the caller has opened for read or write access.ĭetermines whether the media has changed on a removable-media device - the caller has opened with FILE_READ_ATTRIBUTES. Where no storage class driver exists, the application might make the request directly to the port driver. Storage class drivers must handle some or all of these requests, depending on the type of storage device. The storage class driver initiates some of these requests, but usually it is an application that does so. The IOCTL_STORAGE_ XXX control codes have identical values for function code, transfer method, and required access as the previous disk, tape, and CD-ROM codes.
For example, IOCTL_STORAGE_RESERVE replaces IOCTL_DISK_RESERVE, IOCTL_TAPE_RESERVE, and IOCTL_CDROM_RESERVE. The I/O control codes defined here have the form IOCTL_STORAGE_ XXX and they replace the IOCTL_ DeviceType_XXX control codes, where DeviceType was DISK, TAPE, or CDROM. Rather than duplicate the IOCTL requests that provide these services for each device type, this section defines a set of standard services and accompanying device control codes that are frequently required by storage devices. Storage devices of different kinds often require the same services.