3.2.1 Module API
Related headers [link]
Name | Description |
---|---|
vfs/file.h | Operations on file handles |
vfs/fs.h | Filesystem driver operations interface |
vfs/name.h | Core operations on file system nodes |
vfs/node.h | Core file system node |
vfs/path.h | Core file system node |
Members [link]
Types [link]
- typedef [...] * vfs_dir_hash_item_t
- struct vfs_dirent_s
- typedef void (vfs_file_cleanup_t)(struct vfs_file_s *file)
- struct vfs_file_ops_s
- typedef ssize_t (vfs_file_read_t)(struct vfs_file_s *file, void *buffer, size_t size)
- struct vfs_file_s
- typedef off_t (vfs_file_seek_t)(struct vfs_file_s *file, off_t offset, enum vfs_whence_e whence)
- typedef off_t (vfs_file_truncate_t)(struct vfs_file_s *file, off_t new_size)
- typedef ssize_t (vfs_file_write_t)(struct vfs_file_s *file, const void *buffer, size_t size)
- typedef bool_t (vfs_fs_can_unmount_t)(struct vfs_fs_s *fs)
- typedef void (vfs_fs_cleanup_t)(struct vfs_fs_s *fs)
- typedef error_t (vfs_fs_create_t)(struct vfs_fs_s *fs, enum vfs_node_type_e type, struct vfs_node_s **node)
- typedef error_t (vfs_fs_link_t)(struct vfs_node_s *node, struct vfs_node_s *parent, const char *name, size_t namelen, struct vfs_node_s **rnode)
- typedef error_t (vfs_fs_lookup_t)(struct vfs_node_s *ref, const char *name, size_t namelen, struct vfs_node_s **node, char *mangled_name)
- typedef error_t (vfs_fs_move_t)(struct vfs_node_s *node, struct vfs_node_s *parent, const char *name, size_t namelen)
- typedef void (vfs_fs_node_cleanup_t)(struct vfs_node_s *node)
- typedef error_t (vfs_fs_node_open_t)(struct vfs_node_s *node, enum vfs_open_flags_e flags, struct vfs_file_s **file)
- struct vfs_fs_ops_s
- struct vfs_fs_s
- typedef error_t (vfs_fs_stat_t)(struct vfs_node_s *node, struct vfs_stat_s *stat)
- typedef error_t (vfs_fs_unlink_t)(struct vfs_node_s *parent, const char *name, size_t namelen)
- enum vfs_node_type_e
- enum vfs_open_flags_e
- struct vfs_stat_s
- enum vfs_whence_e
Functions [link]
- error_t vfs_create(struct vfs_node_s *root, struct vfs_node_s *cwd, const char *path, enum vfs_node_type_e type, struct vfs_node_s **node)
- void vfs_dump(struct vfs_node_s *root)
- void vfs_file_cleanup(struct vfs_file_s *file)
- void vfs_file_close(struct vfs_file_s *file)
- void vfs_file_destroy(struct vfs_file_s *file)
- error_t vfs_file_init(struct vfs_file_s *file, const struct vfs_file_ops_s *ops, enum vfs_open_flags_e flags, struct vfs_node_s *node)
- ssize_t vfs_file_read(struct vfs_file_s *file, void *buffer, size_t size)
- bool_t vfs_file_refdec(struct vfs_file_s *file)
- struct vfs_file_s * vfs_file_refinc(struct vfs_file_s *file)
- off_t vfs_file_seek(struct vfs_file_s *file, off_t offset, enum vfs_whence_e whence)
- off_t vfs_file_truncate(struct vfs_file_s *file, off_t new_size)
- ssize_t vfs_file_write(struct vfs_file_s *file, const void *buffer, size_t size)
- void vfs_fs_cleanup(struct vfs_fs_s *fs)
- void vfs_fs_destroy(struct vfs_fs_s *fs)
- void vfs_fs_dump_stats(struct vfs_fs_s *fs)
- error_t vfs_fs_init(struct vfs_fs_s *fs, const struct vfs_fs_ops_s *ops, bool_t ro)
- void vfs_fs_root_set(struct vfs_fs_s *fs, struct vfs_node_s *root)
- error_t vfs_link(struct vfs_node_s *root, struct vfs_node_s *cwd, const char *src, const char *dst)
- error_t vfs_lookup(struct vfs_node_s *root, struct vfs_node_s *cwd, const char *path, struct vfs_node_s **node)
- error_t vfs_mount(struct vfs_node_s *mountpoint, struct vfs_fs_s *fs)
- bool_t vfs_name_compare(const char *fullname, size_t fullnamelen, const char *vfsname, size_t vfsnamelen)
- size_t vfs_name_mangle(const char *fullname, size_t fullnamelen, char *vfsname)
- bool_t vfs_node__refdec(struct vfs_node_s *node, const char *func)
- struct vfs_node_s * vfs_node__refinc(struct vfs_node_s *node, const char *func)
- error_t vfs_node_anon_create(struct vfs_fs_s *fs, enum vfs_node_type_e type, struct vfs_node_s **node)
- void vfs_node_cleanup(struct vfs_node_s *node)
- void vfs_node_destroy(struct vfs_node_s *node)
- struct vfs_fs_s * vfs_node_get_fs(struct vfs_node_s *node)
- ssize_t vfs_node_get_name(struct vfs_node_s *node, char *name, size_t namelen)
- struct vfs_node_s * vfs_node_get_parent(struct vfs_node_s *node)
- error_t vfs_node_init(struct vfs_node_s *node, struct vfs_fs_s *fs, enum vfs_node_type_e type, const char *name, size_t name_size)
- error_t vfs_node_link(struct vfs_node_s *node, struct vfs_node_s *parent, const char *fullname, size_t fullnamelen, struct vfs_node_s **rnode)
- error_t vfs_node_lookup(struct vfs_node_s *parent, const char *fullname, size_t fullnamelen, struct vfs_node_s **node)
- error_t vfs_node_move(struct vfs_node_s *node, struct vfs_node_s *parent, const char *fullname, size_t fullnamelen)
- error_t vfs_node_open(struct vfs_node_s *node, enum vfs_open_flags_e flags, struct vfs_file_s **file)
- error_t vfs_node_stat(struct vfs_node_s *node, struct vfs_stat_s *stat)
- error_t vfs_node_unlink(struct vfs_node_s *parent, const char *fullname, size_t fullnamelen)
- error_t vfs_open(struct vfs_node_s *root, struct vfs_node_s *cwd, const char *path, enum vfs_open_flags_e flags, struct vfs_file_s **file)
- error_t vfs_stat(struct vfs_node_s *root, struct vfs_node_s *cwd, const char *path, struct vfs_stat_s *stat)
- error_t vfs_umount(struct vfs_node_s *mountpoint)
- error_t vfs_unlink(struct vfs_node_s *root, struct vfs_node_s *cwd, const char *path)
Macros [link]
Configuration tokens [link]
- CONFIG_DRIVER_FS_FAT
- CONFIG_DRIVER_FS_FAT16
- CONFIG_DRIVER_FS_FAT32
- CONFIG_DRIVER_FS_FAT_LFN
- CONFIG_DRIVER_FS_FAT_RW
- CONFIG_DRIVER_FS_FAT_TYPE_FROM_STRING
- CONFIG_DRIVER_FS_ISO9660
- CONFIG_DRIVER_FS_ISO9660_ROCKRIDGE
- CONFIG_DRIVER_FS_RAMFS
- CONFIG_DRIVER_FS_SOCLIB_FDACCESS
- CONFIG_VFS
- CONFIG_VFS_NAMELEN
- CONFIG_VFS_STATS
- CONFIG_VFS_VERBOSE