ConstFS static file system¶
Constant file system resident in arrays.
This is an example of how to implement a simple file system driver for the RIOT VFS layer. The implementation uses an array of constfs_file_t
objects as its storage back-end.
-
const vfs_file_system_t
constfs_file_system
¶ ConstFS file system driver.
For use with vfs_mount
-
struct
constfs_file_t
¶ A file in ConstFS (file name + contents)
-
const char *
path
¶ file system relative path to file
-
const
msp430_types.h::size_t
size
¶ length of
data
-
const uint8_t *
data
¶ pointer to file contents
-
const char *
-
struct
constfs_t
¶ ConstFS file system superblock.
-
const
msp430_types.h::size_t
nfiles
¶ Number of files.
-
const constfs_file_t *
files
¶ Files array.
-
const