Writing a Linear Flash Memory Driver

Although Windows CE provides a linear flash memory driver in the form of the TrueFFS driver, OEMs or IHVs can write their own linear flash memory drivers on Windows CE, if desired.

In general, linear flash memory drivers are stream interface drivers; therefore, they expose stream interface functions common to all drivers controlled by the Device Manager. For more information about stream interface drivers and stream interface functions, see Developing Stream Interface Device Drivers.

DSK_IOControl is the main function in the stream interface group that handles all I/O requests. The I/O control codes themselves are the same as those used by the FAT file system. For details about the semantics of those codes, see the Windows CE Platform SDK.

A linear flash memory driver is not required to be a stream interface driver. An OEM can implement a custom driver—for example, a monolithic driver—that supports linear flash media as long as the driver fits the Windows CE–based device driver model.