1 /** 2 * @file ramfs.h 3 * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited 4 */ 5 6 #ifndef FS_RAMFS_H 7 #define FS_RAMFS_H 8 9 #include <stdint.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 /** 16 * @defgroup ramfs_aos_api ramfs 17 * ramfs 对外API. 18 * @{ 19 */ 20 21 /** 22 * ramfs文件系统注册接口 23 * @param[in] mount_path 该文件系统挂载路径 24 * @return 0 表示注册成功, 负数表示失败 25 * 26 */ 27 int32_t ramfs_register(const char *mount_path); 28 29 /** 30 * ramfs文件系统去注册接口 31 * @param[in] mount_path 该文件系统挂载路径 32 * @return 0 表示去注册成功, 负数表示失败 33 * 34 */ 35 int32_t ramfs_unregister(const char *mount_path); 36 37 38 /** @} */ 39 40 #ifdef __cplusplus 41 } 42 #endif 43 44 #endif 45 46