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,

...

File Called from Code enabled by fs_vol.c Application1111580

                         CPU_INT32U         size,
                         CPU_INT08U         pct_mgmt,
                         CPU_INT08U         pct_dir,
                         FS_FLAGS           mode,
                         FS_ERR            *p_err)
HTML Table
summary
classPlain_Table
Table Row (tr)
Table Cell (td)
Anchor
11115701111570
Table Cell (td)
Anchor
11115721111572
Table Cell (td)
Anchor
11115741111574
Table Row (tr)
Table Cell (td)
Anchor
11115761111576
Table Cell (td)
Anchor
11115781111578
Table Cell (td)
Anchor
1111580


File

Called from

Code enabled by

fs_vol.c

Application

FS_CFG_CACHE_EN

...

10941141094114Assign cache to a volume. Anchor11055831105583

Arguments

...

10941161094116name_vol Anchor11442001144200

Volume name.

...

1094117p_cache_api Anchor11442071144207

Pointer to: (a) cache API to use; OR (b) NULL, if default cache API should be used.

...

1094118p_cache_data Anchor11442141144214

Pointer to cache data.

...

size Anchor11442211144221

Size, in bytes, of cache buffer.

...

pct_mgmt Anchor11442281144228

Percent of cache buffer dedicated to management sectors.

...

10941211094121pct_diranchor11442351144235

Percent of cache buffer dedicated to directory sectors.

...

modeanchor11442421144242

Cache mode

...

FS_VOL_CACHE_MODE_WR_THROUGH

...

...

FS_VOL_CACHE_MODE_WR_BACK

...

FS_VOL_CACHE_MODE_RD

...

1151019p_err Anchor11510201151020

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

...

classWebWorks_Indent_1

...

FS_ERR_NONE

...

...

classWebWorks_Indent_2

...

Cache created.

...

classWebWorks_Indent_1

...

FS_ERR_NAME_NULL

...

classWebWorks_Indent_2

...

name_volpassed a NULL pointer.

...

classWebWorks_Indent_1

...

...

FS_ERR_VOL_NOT_OPEN

...

...

Volume not open.

...

classWebWorks_Indent_1

...

FS_ERR_NULL_PTR

...

classWebWorks_Indent_2

...

p_cache_

...

datapassed a NULL pointer.

...

...

FS_ERR_CACHE_INVALID_MODE

...

classWebWorks_Indent_2

...

Mode specified invalid

...

classWebWorks_Indent_1

...

...

FS_ERR_CACHE_INVALID_SEC_TYPE

...

classWebWorks_Indent_2

...

...

Sector type sepecified invalid.

...

...

FS_ERR_CACHE_TOO_SMALL

...

...

Size specified too small for cache.

...

...

Returned Value

Anchor10941381094138None. Anchor11009691100969

Notes/Warnings

...

None.