xt-sdk 文档
v1.0.3
xt-sdk 嵌入式 SDK API 参考
Toggle main menu visibility
载入中...
搜索中...
未找到
xt_vfs_native.h
浏览该文件的文档.
1
12
13
#ifndef __XT_VFS_NATIVE_H__
14
#define __XT_VFS_NATIVE_H__
15
16
/* ==================== [Includes] ========================================== */
17
18
#include "
xt_vfs.h
"
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
30
31
/* ==================== [Global Prototypes] ================================= */
32
42
const
xt_vfs_ops_t
*
xt_vfs_native_get_ops
(
void
);
43
55
void
*
xt_vfs_native_create
(
const
char
*base_path);
56
61
void
xt_vfs_native_cleanup
(
void
*ctx);
62
71
void
xt_vfs_native_destroy
(
void
*ctx);
72
/* xt_vfs_native */
74
75
#ifdef __cplusplus
76
}
/* extern "C" */
77
#endif
78
79
#endif
/* __XT_VFS_NATIVE_H__ */
xt_vfs_native_get_ops
const xt_vfs_ops_t * xt_vfs_native_get_ops(void)
获取跨平台原生 FS 的 ops 表(惰性初始化)
xt_vfs_native_create
void * xt_vfs_native_create(const char *base_path)
创建原生 FS 后端实例
xt_vfs_native_destroy
void xt_vfs_native_destroy(void *ctx)
销毁原生 FS 后端实例
xt_vfs_native_cleanup
void xt_vfs_native_cleanup(void *ctx)
递归清空后端根目录下所有文件及子目录
xt_vfs_ops_t
struct xt_vfs_ops xt_vfs_ops_t
后端操作接口(前向声明)
定义
xt_vfs.h:246
xt_vfs.h
xt 虚拟文件系统——支持多后端挂载、两级锁、静态/动态内存切换
components
xt_vfs_native
xt_vfs_native.h
生成于
, 为 xt-sdk 文档使用
1.17.0