XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_vfs_ops.h 文件参考
xf_vfs_ops.h 的引用(Include)关系图:

浏览源代码.

结构体

struct  xf_vfs_dir_ops_t
 Struct containing function pointers to directory related functionality. 更多...
 
struct  xf_vfs_fs_ops_t
 Main struct of the minified vfs API, containing basic function pointers as well as pointers to the other subcomponents. 更多...
 

类型定义

typedef int(* xf_vfs_stat_ctx_op_t) (void *ctx, const char *path, xf_vfs_stat_t *st)
 
typedef int(* xf_vfs_stat_op_t) (const char *path, xf_vfs_stat_t *st)
 
typedef int(* xf_vfs_link_ctx_op_t) (void *ctx, const char *n1, const char *n2)
 
typedef int(* xf_vfs_link_op_t) (const char *n1, const char *n2)
 
typedef int(* xf_vfs_unlink_ctx_op_t) (void *ctx, const char *path)
 
typedef int(* xf_vfs_unlink_op_t) (const char *path)
 
typedef int(* xf_vfs_rename_ctx_op_t) (void *ctx, const char *src, const char *dst)
 
typedef int(* xf_vfs_rename_op_t) (const char *src, const char *dst)
 
typedef xf_vfs_dir_t *(* xf_vfs_opendir_ctx_op_t) (void *ctx, const char *name)
 
typedef xf_vfs_dir_t *(* xf_vfs_opendir_op_t) (const char *name)
 
typedef xf_vfs_dirent_t *(* xf_vfs_readdir_ctx_op_t) (void *ctx, xf_vfs_dir_t *pdir)
 
typedef xf_vfs_dirent_t *(* xf_vfs_readdir_op_t) (xf_vfs_dir_t *pdir)
 
typedef 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)
 
typedef int(* xf_vfs_readdir_r_op_t) (xf_vfs_dir_t *pdir, xf_vfs_dirent_t *entry, xf_vfs_dirent_t **out)
 
typedef long(* xf_vfs_telldir_ctx_op_t) (void *ctx, xf_vfs_dir_t *pdir)
 
typedef long(* xf_vfs_telldir_op_t) (xf_vfs_dir_t *pdir)
 
typedef void(* xf_vfs_seekdir_ctx_op_t) (void *ctx, xf_vfs_dir_t *pdir, long offset)
 
typedef void(* xf_vfs_seekdir_op_t) (xf_vfs_dir_t *pdir, long offset)
 
typedef int(* xf_vfs_closedir_ctx_op_t) (void *ctx, xf_vfs_dir_t *pdir)
 
typedef int(* xf_vfs_closedir_op_t) (xf_vfs_dir_t *pdir)
 
typedef int(* xf_vfs_mkdir_ctx_op_t) (void *ctx, const char *name, xf_vfs_mode_t mode)
 
typedef int(* xf_vfs_mkdir_op_t) (const char *name, xf_vfs_mode_t mode)
 
typedef int(* xf_vfs_rmdir_ctx_op_t) (void *ctx, const char *name)
 
typedef int(* xf_vfs_rmdir_op_t) (const char *name)
 
typedef int(* xf_vfs_access_ctx_op_t) (void *ctx, const char *path, int amode)
 
typedef int(* xf_vfs_access_op_t) (const char *path, int amode)
 
typedef int(* xf_vfs_truncate_ctx_op_t) (void *ctx, const char *path, xf_vfs_off_t length)
 
typedef int(* xf_vfs_truncate_op_t) (const char *path, xf_vfs_off_t length)
 
typedef int(* xf_vfs_ftruncate_ctx_op_t) (void *ctx, int fd, xf_vfs_off_t length)
 
typedef int(* xf_vfs_ftruncate_op_t) (int fd, xf_vfs_off_t length)
 
typedef int(* xf_vfs_utime_ctx_op_t) (void *ctx, const char *path, const xf_vfs_utimbuf_t *times)
 
typedef int(* xf_vfs_utime_op_t) (const char *path, const xf_vfs_utimbuf_t *times)
 
typedef xf_vfs_ssize_t(* xf_vfs_write_ctx_op_t) (void *ctx, int fd, const void *data, size_t size)
 
typedef xf_vfs_ssize_t(* xf_vfs_write_op_t) (int fd, const void *data, size_t size)
 
typedef xf_vfs_off_t(* xf_vfs_lseek_ctx_op_t) (void *ctx, int fd, xf_vfs_off_t size, int mode)
 
typedef xf_vfs_off_t(* xf_vfs_lseek_op_t) (int fd, xf_vfs_off_t size, int mode)
 
typedef xf_vfs_ssize_t(* xf_vfs_read_ctx_op_t) (void *ctx, int fd, void *dst, size_t size)
 
typedef xf_vfs_ssize_t(* xf_vfs_read_op_t) (int fd, void *dst, size_t size)
 
typedef xf_vfs_ssize_t(* xf_vfs_pread_ctx_op_t) (void *ctx, int fd, void *dst, size_t size, xf_vfs_off_t offset)
 
typedef xf_vfs_ssize_t(* xf_vfs_pread_op_t) (int fd, void *dst, size_t size, xf_vfs_off_t offset)
 
typedef 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)
 
typedef xf_vfs_ssize_t(* xf_vfs_pwrite_op_t) (int fd, const void *src, size_t size, xf_vfs_off_t offset)
 
typedef int(* xf_vfs_open_ctx_op_t) (void *ctx, const char *path, int flags, int mode)
 
typedef int(* xf_vfs_open_op_t) (const char *path, int flags, int mode)
 
typedef int(* xf_vfs_close_ctx_op_t) (void *ctx, int fd)
 
typedef int(* xf_vfs_close_op_t) (int fd)
 
typedef int(* xf_vfs_fstat_ctx_op_t) (void *ctx, int fd, xf_vfs_stat_t *st)
 
typedef int(* xf_vfs_fstat_op_t) (int fd, xf_vfs_stat_t *st)
 
typedef int(* xf_vfs_fcntl_ctx_op_t) (void *ctx, int fd, int cmd, int arg)
 
typedef int(* xf_vfs_fcntl_op_t) (int fd, int cmd, int arg)
 
typedef int(* xf_vfs_ioctl_ctx_op_t) (void *ctx, int fd, int cmd, va_list args)
 
typedef int(* xf_vfs_ioctl_op_t) (int fd, int cmd, va_list args)
 
typedef int(* xf_vfs_fsync_ctx_op_t) (void *ctx, int fd)
 
typedef int(* xf_vfs_fsync_op_t) (int fd)
 

函数

xf_err_t xf_vfs_register_fs (const char *base_path, const xf_vfs_fs_ops_t *vfs, int flags, void *ctx)
 
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_err_t xf_vfs_unregister_fs (const char *base_path)
 
xf_err_t xf_vfs_unregister_fs_with_id (xf_vfs_id_t id)
 

详细描述

作者
catcatBlue (catca.nosp@m.tblu.nosp@m.e@qq..nosp@m.com)
版本
1.0
日期
2025-01-13

在文件 xf_vfs_ops.h 中定义.