tffsDrv( )

NAME

tffsDrv( ) - initialize the TrueFFS system

SYNOPSIS

STATUS tffsDrv (void)

DESCRIPTION

This routine sets up the structures, the global variables, and the mutual exclusion semaphore needed to manage TrueFFS. This call also registers socket component drivers for the flash devices attached to your target, and, in the process, this function binds an appropriate translation layer module and MTD to the socket component driver.

Because tffsDrv( ) is the call that initializes the TrueFFS system, this function must be called (exactly once) before calling any other TrueFFS utilities, such as tffsDevFormat( ) or tffsDevCreate( ). Typically, the call to tffsDrv( ) is handled for you automatically by the VxWorks start up code if you defined INCLUDE_TFFS or INCLUDE_PCMCIA in you BSP's config.h.

RETURNS

OK, or ERROR if it fails.

SEE ALSO

tffsDrv