|
int(* | open )(struct fs_file_t *filp, const char *fs_path, fs_mode_t flags) |
|
ssize_t(* | read )(struct fs_file_t *filp, void *dest, size_t nbytes) |
|
ssize_t(* | write )(struct fs_file_t *filp, const void *src, size_t nbytes) |
|
int(* | lseek )(struct fs_file_t *filp, off_t off, int whence) |
|
off_t(* | tell )(struct fs_file_t *filp) |
|
int(* | truncate )(struct fs_file_t *filp, off_t length) |
|
int(* | sync )(struct fs_file_t *filp) |
|
int(* | close )(struct fs_file_t *filp) |
|
int(* | opendir )(struct fs_dir_t *dirp, const char *fs_path) |
|
int(* | readdir )(struct fs_dir_t *dirp, struct fs_dirent *entry) |
|
int(* | closedir )(struct fs_dir_t *dirp) |
|
int(* | mount )(struct fs_mount_t *mountp) |
|
int(* | unmount )(struct fs_mount_t *mountp) |
|
int(* | unlink )(struct fs_mount_t *mountp, const char *name) |
|
int(* | rename )(struct fs_mount_t *mountp, const char *from, const char *to) |
|
int(* | mkdir )(struct fs_mount_t *mountp, const char *name) |
|
int(* | stat )(struct fs_mount_t *mountp, const char *path, struct fs_dirent *entry) |
|
int(* | statvfs )(struct fs_mount_t *mountp, const char *path, struct fs_statvfs *stat) |
|
File System interface structure.
- Parameters
-
open | Opens or creates a file, depending on flags given |
read | Reads nbytes number of bytes |
write | Writes nbytes number of bytes |
lseek | Moves the file position to a new location in the file |
tell | Retrieves the current position in the file |
truncate | Truncates/expands the file to the new length |
sync | Flushes the cache of an open file |
close | Flushes the associated stream and closes the file |
opendir | Opens an existing directory specified by the path |
readdir | Reads directory entries of an open directory |
closedir | Closes an open directory |
mount | Mounts a file system |
unmount | Unmounts a file system |
unlink | Deletes the specified file or directory |
rename | Renames a file or directory |
mkdir | Creates a new directory using specified path |
stat | Checks the status of a file or directory specified by the path |
statvfs | Returns the total and available space on the file system volume |