BLK_DEV * tffsDevCreate ( int tffsDriveNo, /* TFFS drive number (0 - DRIVES-1) */ int removableMediaFlag /* 0 - nonremovable flash media */ )
This routine creates a TFFS block device on top of a flash device. It takes as arguments a drive number, determined from the order in which the socket components were registered, and a flag integer that indicates whether the medium is removable or not. A zero indicates a non removable medium. A one indicates a removable medium.
It is within this function that a device-appropriate MTD and translation layer module are bound to the socket component driver.