Share via


Flash Driver MDD IOCTLs (Compact 2013)

3/26/2014

The following table shows the flash driver MDD IOCTLs with a description of the purpose of each.

Programming element

Description

IOCTL_FLASH_CREATE_PARTITION

This IOCTL creates one or more new partitions located at the end of the existing partitions.

IOCTL_FLASH_DELETE_LOGICAL_SECTORS

This IOCTL deletes a set of sector ranges from the storage media in a single operation. Multiple sector ranges that are not contiguous are able to be specified in a single request.

IOCTL_FLASH_FORMAT_PARTITION

This IOCTL erases all of the blocks in a single partition.

IOCTL_FLASH_FORMAT_STORE

This IOCTL erases all of the blocks in the flash region and reinitializes the partition table.

IOCTL_FLASH_GET_SECTOR_ADDRESS

This IOCTL retrieves, for every logical sector address provided, the corresponding statically mapped virtual address of the physical sector.

IOCTL_FLASH_GET_PARTITION_TABLE

This IOCTL retrieves the entire partition table across all flash regions. The partition table is returned as an array of FLASH_PARTITION_INFO structures, with the number of elements equal to the number of partitions on the flash storage media.

IOCTL_FLASH_GET_REGION_FREE_SPACE

This IOCTL retrieves the number of free blocks in a particular region that can be used for creating new partitions. The block count retrieved accounts for bad blocks.

IOCTL_FLASH_LOCK_PARTITIONS

This IOCTL locks one or more partitions, such that blocks can not be unlocked without a power reset. All other partitions on store will be unlocked. This IOCTL allows for regions that are not contiguous to be locked, but the flash part may not support this behavior.

IOCTL_FLASH_SECURE_WIPE

This IOCTL performs a secure wipe on a single partition.

IOCTL_FLASH_READ_LOGICAL_SECTORS

This IOCTL reads a set of sector range/sector data pairs from the storage media in a single transfer.

IOCTL_FLASH_WRITE_LOGICAL_SECTORS

This IOCTL writes a set of sector range/sector data pairs to the storage media in a single transfer.

See Also

Reference

Flash MDD and PDD Reference