...
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 |
| Application |
|
...
Arguments
Anchor
name_vol
Volume name.
...
p_cache_api
1144207 Anchor
Pointer to: (a) cache API to use; OR (b) NULL, if default cache API should be used.
Anchor
p_cache_data
Pointer to cache data.
Anchor
size
Size, in bytes, of cache buffer.
Anchor
pct_mgmt
anchorPercent of cache buffer dedicated to management sectors.
...
pct_dir
Anchor
Percent of cache buffer dedicated to directory sectors.
Anchor
mode
Cache mode
...
...
FS_VOL_CACHE_MODE_WR_THROUGH
...
...
FS_VOL_CACHE_MODE_WR_BACK
...
...
FS_VOL_CACHE_MODE_RD
Anchor
p_err
Pointer to variable that will receive return error code from this function:
...
...
FS_ERR_NONE
...
...
Cache created.
...
class | WebWorks_Indent_1 |
---|
...
FS_ERR_NAME_NULL
...
class | WebWorks_Indent_2 |
---|
...
‘name_vol
’ passed a NULL pointer.
...
...
FS_ERR_VOL_NOT_OPEN
...
class | WebWorks_Indent_2 |
---|
...
Volume not open.
...
...
FS_ERR_NULL_PTR
...
class | WebWorks_Indent_2 |
---|
...
‘p_cache_data
’ passed a NULL pointer.
...
class | WebWorks_Indent_1 |
---|
...
FS_ERR_CACHE_INVALID_MODE
...
...
class | WebWorks_Indent_2 |
---|
...
Mode specified invalid
...
...
FS_ERR_CACHE_INVALID_SEC_TYPE
...
class | WebWorks_Indent_2 |
---|
...
Sector type sepecified invalid.
...
...
FS_ERR_CACHE_TOO_SMALL
...
class | WebWorks_Indent_2 |
---|
...
Size specified too small for cache.
...
...
Returned Value
Anchor
Notes/Warnings
...
None.