|
RT-Thread RTOS
1.0.0
An open source embedded real-time operating system
|
Functions | |
| int | dfs_register (const struct dfs_filesystem_operation *ops) |
| struct dfs_filesystem * | dfs_filesystem_lookup (const char *path) |
| rt_err_t | dfs_filesystem_get_partition (struct dfs_partition *part, rt_uint8_t *buf, rt_uint32_t pindex) |
| int | dfs_mount (const char *device_name, const char *path, const char *filesystemtype, unsigned long rwflag, const void *data) |
| int | dfs_unmount (const char *specialfile) |
| int | dfs_mkfs (const char *fs_name, const char *device_name) |
| int | dfs_statfs (const char *path, struct statfs *buffer) |
| int dfs_register | ( | const struct dfs_filesystem_operation * | ops | ) |
this function will register a file system instance to device file system.
| ops | the file system instance to be registered. |
| struct dfs_filesystem* dfs_filesystem_lookup | ( | const char * | path | ) | [read] |
this function will return the file system mounted on specified path.
| path | the specified path string. |
| rt_err_t dfs_filesystem_get_partition | ( | struct dfs_partition * | part, |
| rt_uint8_t * | buf, | ||
| rt_uint32_t | pindex | ||
| ) |
this function will fetch the partition table on specified buffer.
| part | the returned partition structure. |
| buf | the buffer contains partition table. |
| pindex | the index of partition table to fetch. |
| int dfs_mount | ( | const char * | device_name, |
| const char * | path, | ||
| const char * | filesystemtype, | ||
| unsigned long | rwflag, | ||
| const void * | data | ||
| ) |
this function will mount a file system on a specified path.
| device_name | the name of device which includes a file system. |
| path | the path to mount a file system |
| filesystemtype | the file system type |
| rwflag | the read/write etc. flag. |
| data | the private data(parameter) for this file system. |
| int dfs_unmount | ( | const char * | specialfile | ) |
this function will umount a file system on specified path.
| specialfile | the specified path which mounted a file system. |
| int dfs_mkfs | ( | const char * | fs_name, |
| const char * | device_name | ||
| ) |
make a file system on the special device
| fs_name | the file system name |
| device_name | the special device name |
| int dfs_statfs | ( | const char * | path, |
| struct statfs * | buffer | ||
| ) |
this function will return the information about a mounted file system.
| path | the path which mounted file system. |
| buffer | the buffer to save the returned information. |