Flash Media Driver IOCTLs (Compact 2013)
3/26/2014
The following table shows the Flash Media driver IOCTLs with a description of the purpose of each.
Programming element |
Description |
---|---|
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. |
|
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. |
|
This IOCTL retrieves the XIP mode. |
|
This IOCTL returns the interface exported by the FMD. Any functions not implemented by the FMD should have the function pointer set to NULL. |
|
This IOCTL returns the raw size of a block. |
|
This IOCTL returns the reserved table, specifying locations of reserved regions. |
|
This IOCTL locks one or more blocks in a specified range. |
|
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. |
|
This IOCTL reads the reserved blocks for a reserved name into a user-supplied buffer. |
|
This IOCTL sets the sector size for the strata FMD block driver. |
|
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. |
|
This IOCTL unlocks one or more blocks in a specified range. |
|
This IOCTL writes data to the reserved blocks for a specific reserved name. |