Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
languagecpp
void  FSVol_CacheAssign (CPU_CHAR          *name_vol,

...


                         FS_VOL_CACHE_API  *p_cache_api,

...


                         void              *p_cache_data,

...


                         CPU_INT32U         size,

...


                         CPU_INT08U         pct_mgmt,

...


                         CPU_INT08U         pct_dir,

...


                         FS_FLAGS           mode,

...


                         FS_ERR            *p_err)


File

Called from

Code enabled by

fs_vol.c

Application

FS_CFG_CACHE_EN

Assign cache to a volume.

...

Pointer to variable that will receive return error code from this function:

FS_ERR_NONE

Cache created.

FS_ERR_NAME_NULL

name_vol’ passed a NULL pointer.

FS_ERR_VOL_NOT_OPEN

Volume not open.

FS_ERR_NULL_PTR

p_cache_data’ passed a NULL pointer.

FS_ERR_CACHE_INVALID_MODE

Mode specified invalid

FS_ERR_CACHE_INVALID_SEC_TYPE

Sector type sepecified invalid.

FS_ERR_CACHE_TOO_SMALL

Size specified too small for cache.

Returned Value

None.

Notes/Warnings

...