27#ifndef __XF_VFS_OPS_H__
28#define __XF_VFS_OPS_H__
51#if XF_VFS_SUPPORT_DIR_IS_ENABLE
234#if XF_VFS_SUPPORT_DIR_IS_ENABLE
238#if XF_VFS_SUPPORT_SELECT_IS_ENABLE || defined __DOXYGEN__
int32_t xf_err_t
整形错误类型。 错误码具体值见 xf_err_code_t.
int(* xf_vfs_fsync_op_t)(int fd)
int(* xf_vfs_fstat_op_t)(int fd, xf_vfs_stat_t *st)
xf_vfs_ssize_t(* xf_vfs_read_ctx_op_t)(void *ctx, int fd, void *dst, size_t size)
int(* xf_vfs_rename_ctx_op_t)(void *ctx, const char *src, const char *dst)
int(* xf_vfs_truncate_ctx_op_t)(void *ctx, const char *path, xf_vfs_off_t length)
long(* xf_vfs_telldir_ctx_op_t)(void *ctx, xf_vfs_dir_t *pdir)
int(* xf_vfs_ioctl_ctx_op_t)(void *ctx, int fd, int cmd, va_list args)
int(* xf_vfs_rmdir_ctx_op_t)(void *ctx, const char *name)
int(* xf_vfs_fcntl_ctx_op_t)(void *ctx, int fd, int cmd, int arg)
int(* xf_vfs_unlink_op_t)(const char *path)
int(* xf_vfs_ftruncate_ctx_op_t)(void *ctx, int fd, xf_vfs_off_t length)
int(* xf_vfs_unlink_ctx_op_t)(void *ctx, const char *path)
int(* xf_vfs_utime_op_t)(const char *path, const xf_vfs_utimbuf_t *times)
int(* xf_vfs_link_ctx_op_t)(void *ctx, const char *n1, const char *n2)
xf_vfs_ssize_t(* xf_vfs_pread_op_t)(int fd, void *dst, size_t size, xf_vfs_off_t offset)
int(* xf_vfs_open_ctx_op_t)(void *ctx, const char *path, int flags, int mode)
xf_vfs_dir_t *(* xf_vfs_opendir_op_t)(const char *name)
int(* xf_vfs_fstat_ctx_op_t)(void *ctx, int fd, xf_vfs_stat_t *st)
int(* xf_vfs_ftruncate_op_t)(int fd, xf_vfs_off_t length)
int(* xf_vfs_readdir_r_ctx_op_t)(void *ctx, xf_vfs_dir_t *pdir, xf_vfs_dirent_t *entry, xf_vfs_dirent_t **out)
int(* xf_vfs_open_op_t)(const char *path, int flags, int mode)
int(* xf_vfs_close_op_t)(int fd)
int(* xf_vfs_access_op_t)(const char *path, int amode)
int(* xf_vfs_rmdir_op_t)(const char *name)
int(* xf_vfs_rename_op_t)(const char *src, const char *dst)
xf_err_t xf_vfs_unregister_fs(const char *base_path)
xf_err_t xf_vfs_register_fs_with_id(const xf_vfs_fs_ops_t *vfs, int flags, void *ctx, xf_vfs_id_t *id)
xf_vfs_ssize_t(* xf_vfs_write_op_t)(int fd, const void *data, size_t size)
xf_vfs_off_t(* xf_vfs_lseek_ctx_op_t)(void *ctx, int fd, xf_vfs_off_t size, int mode)
int(* xf_vfs_mkdir_op_t)(const char *name, xf_vfs_mode_t mode)
xf_vfs_ssize_t(* xf_vfs_pwrite_op_t)(int fd, const void *src, size_t size, xf_vfs_off_t offset)
int(* xf_vfs_closedir_op_t)(xf_vfs_dir_t *pdir)
int(* xf_vfs_stat_op_t)(const char *path, xf_vfs_stat_t *st)
void(* xf_vfs_seekdir_ctx_op_t)(void *ctx, xf_vfs_dir_t *pdir, long offset)
xf_err_t xf_vfs_unregister_fs_with_id(xf_vfs_id_t id)
xf_vfs_dir_t *(* xf_vfs_opendir_ctx_op_t)(void *ctx, const char *name)
void(* xf_vfs_seekdir_op_t)(xf_vfs_dir_t *pdir, long offset)
int(* xf_vfs_access_ctx_op_t)(void *ctx, const char *path, int amode)
int(* xf_vfs_close_ctx_op_t)(void *ctx, int fd)
xf_vfs_ssize_t(* xf_vfs_pread_ctx_op_t)(void *ctx, int fd, void *dst, size_t size, xf_vfs_off_t offset)
xf_vfs_ssize_t(* xf_vfs_read_op_t)(int fd, void *dst, size_t size)
xf_vfs_off_t(* xf_vfs_lseek_op_t)(int fd, xf_vfs_off_t size, int mode)
int(* xf_vfs_mkdir_ctx_op_t)(void *ctx, const char *name, xf_vfs_mode_t mode)
xf_vfs_ssize_t(* xf_vfs_write_ctx_op_t)(void *ctx, int fd, const void *data, size_t size)
int(* xf_vfs_truncate_op_t)(const char *path, xf_vfs_off_t length)
xf_err_t xf_vfs_register_fs(const char *base_path, const xf_vfs_fs_ops_t *vfs, int flags, void *ctx)
xf_vfs_dirent_t *(* xf_vfs_readdir_op_t)(xf_vfs_dir_t *pdir)
int(* xf_vfs_closedir_ctx_op_t)(void *ctx, xf_vfs_dir_t *pdir)
int(* xf_vfs_ioctl_op_t)(int fd, int cmd, va_list args)
xf_vfs_dirent_t *(* xf_vfs_readdir_ctx_op_t)(void *ctx, xf_vfs_dir_t *pdir)
int(* xf_vfs_fcntl_op_t)(int fd, int cmd, int arg)
int(* xf_vfs_link_op_t)(const char *n1, const char *n2)
int(* xf_vfs_utime_ctx_op_t)(void *ctx, const char *path, const xf_vfs_utimbuf_t *times)
xf_vfs_ssize_t(* xf_vfs_pwrite_ctx_op_t)(void *ctx, int fd, const void *src, size_t size, xf_vfs_off_t offset)
int(* xf_vfs_stat_ctx_op_t)(void *ctx, const char *path, xf_vfs_stat_t *st)
int(* xf_vfs_fsync_ctx_op_t)(void *ctx, int fd)
int(* xf_vfs_readdir_r_op_t)(xf_vfs_dir_t *pdir, xf_vfs_dirent_t *entry, xf_vfs_dirent_t **out)
long(* xf_vfs_telldir_op_t)(xf_vfs_dir_t *pdir)
Struct containing function pointers to directory related functionality.
const xf_vfs_access_op_t access
const xf_vfs_link_ctx_op_t link_p
const xf_vfs_opendir_ctx_op_t opendir_p
const xf_vfs_telldir_ctx_op_t telldir_p
const xf_vfs_seekdir_op_t seekdir
const xf_vfs_rmdir_op_t rmdir
const xf_vfs_ftruncate_ctx_op_t ftruncate_p
const xf_vfs_rmdir_ctx_op_t rmdir_p
const xf_vfs_mkdir_ctx_op_t mkdir_p
const xf_vfs_stat_op_t stat
const xf_vfs_seekdir_ctx_op_t seekdir_p
const xf_vfs_truncate_op_t truncate
const xf_vfs_rename_op_t rename
const xf_vfs_ftruncate_op_t ftruncate
const xf_vfs_closedir_ctx_op_t closedir_p
const xf_vfs_utime_op_t utime
const xf_vfs_telldir_op_t telldir
const xf_vfs_opendir_op_t opendir
const xf_vfs_link_op_t link
const xf_vfs_access_ctx_op_t access_p
const xf_vfs_closedir_op_t closedir
const xf_vfs_unlink_op_t unlink
const xf_vfs_stat_ctx_op_t stat_p
const xf_vfs_mkdir_op_t mkdir
const xf_vfs_readdir_ctx_op_t readdir_p
const xf_vfs_truncate_ctx_op_t truncate_p
const xf_vfs_unlink_ctx_op_t unlink_p
const xf_vfs_readdir_r_ctx_op_t readdir_r_p
const xf_vfs_readdir_r_op_t readdir_r
const xf_vfs_readdir_op_t readdir
const xf_vfs_rename_ctx_op_t rename_p
const xf_vfs_utime_ctx_op_t utime_p
Opaque directory structure
Directory entry structure
Main struct of the minified vfs API, containing basic function pointers as well as pointers to the ot...
const xf_vfs_ioctl_op_t ioctl
const xf_vfs_pwrite_ctx_op_t pwrite_p
const xf_vfs_pread_op_t pread
const xf_vfs_select_ops_t *const select
const xf_vfs_dir_ops_t *const dir
const xf_vfs_ioctl_ctx_op_t ioctl_p
const xf_vfs_fstat_ctx_op_t fstat_p
const xf_vfs_read_ctx_op_t read_p
const xf_vfs_pwrite_op_t pwrite
const xf_vfs_read_op_t read
const xf_vfs_lseek_ctx_op_t lseek_p
const xf_vfs_fsync_ctx_op_t fsync_p
const xf_vfs_open_ctx_op_t open_p
const xf_vfs_write_op_t write
const xf_vfs_fcntl_ctx_op_t fcntl_p
const xf_vfs_fcntl_op_t fcntl
const xf_vfs_fstat_op_t fstat
const xf_vfs_write_ctx_op_t write_p
const xf_vfs_fsync_op_t fsync
const xf_vfs_close_ctx_op_t close_p
const xf_vfs_pread_ctx_op_t pread_p
const xf_vfs_lseek_op_t lseek
const xf_vfs_close_op_t close
const xf_vfs_open_op_t open
Struct containing function pointers to select related functionality.
aos_utimbuf 结构描述了文件系统 inode 的 最后访问时间和最后修改时间。
xf_vfs 模块内部配置总头文件。 确保 xf_vfs_config.h 的所有定义都有默认值。
unsigned long xf_vfs_mode_t
signed int xf_vfs_ssize_t