Partager via


Flash Media Driver IOCTLs (Windows Embedded CE 6.0)

1/6/2010

The following table shows the Flash Media driver IOCTLs with a description of the purpose of each.

Programming element Description

IOCTL_DISK_DELETE_SECTORS

This IOCTL deletes a specified range of sectors. This is used by the FAL to indicate that the sectors are no longer needed. The sectors are then recycled in the proper manner. For example, this IOCTL should be called by a file system on sectors that are no longer used when a file is deleted.

IOCTL_FMD_GET_INFO

This IOCTL determines the size characteristics for the flash media device. This IOCTL is similar to the FMD_GetInfo function, however, it can be used by an application to retrieve the size information.

IOCTL_FMD_GET_XIPMODE

This IOCTL retrieves the XIP mode.

IOCTL_FMD_GET_INTERFACE

This IOCTL returns the interface exported by the FMD. Any functions not implemented by the FMD should have the function pointer set to NULL.

IOCTL_FMD_GET_RAW_BLOCK_SIZE

This IOCTL returns the raw size of a block.

IOCTL_FMD_GET_RESERVED_TABLE

This IOCTL returns the reserved table, specifying locations of reserved regions.

IOCTL_FMD_LOCK_BLOCKS

This IOCTL locks one or more blocks in a specified range.

IOCTL_FMD_RAW_WRITE_BLOCKS

This IOCTL, for NOR flash memory, writes data passed into an entire block. For NAND flash memory, this IOCTL writes data to both the page data section as well as the page spare area.

IOCTL_FMD_READ_RESERVED

This IOCTL reads the reserved blocks for a reserved name into a user-supplied buffer.

IOCTL_FMD_SET_SECTORSIZE

This IOCTL sets the sector size for the strata FMD block driver.

IOCTL_FMD_SET_XIPMODE

This IOCTL sets the XIP mode to either XIP or non-XIP mode. In XIP mode, the sector information is not stored along with each sector. In non-XIP mode, a FMD must store the corresponding sector information in SECTORINFO for each sector.

IOCTL_FMD_UNLOCK_BLOCKS

This IOCTL unlocks one or more blocks in a specified range.

IOCTL_FMD_WRITE_RESERVED

This IOCTL writes data to the reserved blocks for a specific reserved name.

See Also

Other Resources

Flash Media Driver Reference