tffsDevCreate( )

NAME

tffsDevCreate( ) - create a TrueFFS block device suitable for use with dosFs

SYNOPSIS

BLK_DEV * tffsDevCreate 
    ( 
    int  tffsDriveNo,        /* TFFS drive number (0 - DRIVES-1) */ 
    int  removableMediaFlag  /* 0 - nonremovable flash media     */ 
    )

DESCRIPTION

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.

RETURNS

BLK_DEV pointer, or NULL if it failed.

SEE ALSO

tffsDrv usrTffsConfig