...
Code Block | ||
---|---|---|
| ||
void FSVol_CacheAssign (CPU_CHAR *name_vol, FS_VOL_CACHE_API *p_cache_api, |
...
void *p_cache_data, |
...
HTML Table | |
---|---|
summary | |
class | Plain_Table | Table Row (tr) | Table Cell (td) | Anchor | | 1111570 | 1111570 | File
Table Cell (td) | |
Anchor | 1111572 | 1111572 | Called from
Table Cell (td) | |
Anchor | 1111574 | 1111574 | Code enabled by
Table Row (tr) | |
Table Cell (td) | |
Anchor | 1111576 | 1111576 | fs_vol.c
Table Cell (td) | |
Anchor | 1111578 | 1111578 | Application
Table Cell (td) | |
Anchor | 1111580 | 1111580
File | Called from | Code enabled by |
---|---|---|
| Application |
|
...
Arguments
...
name_vol
Volume name.
...
p_cache_api
Pointer to: (a) cache API to use; OR (b) NULL, if default cache API should be used.
...
p_cache_data
Pointer to cache data.
...
size
Anchor
Size, in bytes, of cache buffer.
...
pct_mgmt
Anchor
Percent of cache buffer dedicated to management sectors.
...
pct_dir
anchorPercent of cache buffer dedicated to directory sectors.
...
mode
anchor
Cache mode
...
FS_VOL_CACHE_MODE_WR_THROUGH
...
...
FS_VOL_CACHE_MODE_WR_BACK
...
FS_VOL_CACHE_MODE_RD
...
p_err
Pointer to variable that will receive return error code from this function:
...
class | WebWorks_Indent_1 |
---|
...
FS_ERR_NONE
...
...
class | WebWorks_Indent_2 |
---|
...
Cache created.
...
class | WebWorks_Indent_1 |
---|
...
FS_ERR_NAME_NULL
...
class | WebWorks_Indent_2 |
---|
...
‘name_vol
’ passed a NULL pointer.
...
class | WebWorks_Indent_1 |
---|
...
...
FS_ERR_VOL_NOT_OPEN
...
...
Volume not open.
...
class | WebWorks_Indent_1 |
---|
...
FS_ERR_NULL_PTR
...
class | WebWorks_Indent_2 |
---|
...
‘p_cache_
...
data
’ passed a NULL pointer.
...
...
FS_ERR_CACHE_INVALID_MODE
...
class | WebWorks_Indent_2 |
---|
...
Mode specified invalid
...
class | WebWorks_Indent_1 |
---|
...
...
FS_ERR_CACHE_INVALID_SEC_TYPE
...
class | WebWorks_Indent_2 |
---|
...
...
Sector type sepecified invalid.
...
...
FS_ERR_CACHE_TOO_SMALL
...
...
Size specified too small for cache.
...
...
Returned Value
Anchor
Notes/Warnings
...
None.