Home
last modified time | relevance | path

Searched refs:vfs_file_t (Results 1 – 9 of 9) sorted by relevance

/AliOS-Things-master/components/vfs/include/
A Dvfs_types.h83 } vfs_file_t; typedef
91 int32_t (*open) (vfs_inode_t *node, vfs_file_t *fp);
92 int32_t (*close) (vfs_file_t *fp);
95 int32_t (*ioctl) (vfs_file_t *fp, int32_t cmd, uint32_t arg);
107 int32_t (*close) (vfs_file_t *fp);
111 int32_t (*sync) (vfs_file_t *fp);
113 int32_t (*fstat) (vfs_file_t *fp, vfs_stat_t *st);
119 vfs_dirent_t *(*readdir) (vfs_file_t *fp, vfs_dir_t *dir);
120 int32_t (*closedir) (vfs_file_t *fp, vfs_dir_t *dir);
123 void (*rewinddir) (vfs_file_t *fp, vfs_dir_t *dir);
[all …]
A Dvfs_file.h20 int32_t vfs_fd_get(vfs_file_t *file);
30 vfs_file_t *vfs_file_get(int32_t fd);
40 vfs_file_t *vfs_file_new(vfs_inode_t *node);
49 void vfs_file_del(vfs_file_t *file);
/AliOS-Things-master/components/vfs/example/
A Dvfs_example.c19 static int32_t driver_vfs_open(vfs_file_t *fp, const char *path, int32_t flags) in driver_vfs_open()
25 static int32_t driver_vfs_close(vfs_file_t *fp) in driver_vfs_close()
31 static int32_t driver_vfs_read(vfs_file_t *fp, char *buf, uint32_t len) in driver_vfs_read()
37 static int32_t driver_vfs_write(vfs_file_t *fp, const char *buf, uint32_t len) in driver_vfs_write()
43 static int32_t driver_vfs_ioctl(vfs_file_t *fp, int32_t cmd, uint32_t arg) in driver_vfs_ioctl()
49 static uint32_t driver_vfs_lseek(vfs_file_t *fp, int64_t off, int32_t whence) in driver_vfs_lseek()
100 static int32_t fs_vfs_open(vfs_file_t *fp, const char *path, int32_t flags) in fs_vfs_open()
105 static int32_t fs_vfs_close(vfs_file_t *fp) in fs_vfs_close()
110 static int32_t fs_vfs_read(vfs_file_t *fp, char *buf, uint32_t len) in fs_vfs_read()
115 static int32_t fs_vfs_write(vfs_file_t *fp, const char *buf, uint32_t len) in fs_vfs_write()
/AliOS-Things-master/components/ramfs/src/
A Dramfs_vfs.c55 static int32_t ramfs_vfs_close(vfs_file_t *fp) in ramfs_vfs_close()
171 static int32_t ramfs_vfs_unlink(vfs_file_t *fp, const char *path) in ramfs_vfs_unlink()
176 static int32_t ramfs_vfs_remove(vfs_file_t *fp, const char *path) in ramfs_vfs_remove()
207 static int32_t ramfs_vfs_closedir(vfs_file_t *fp, vfs_dir_t *dir) in ramfs_vfs_closedir()
259 static int32_t ramfs_vfs_fstat(vfs_file_t *fp, vfs_stat_t *st) in ramfs_vfs_fstat()
321 static int32_t ramfs_vfs_mkdir(vfs_file_t *fp, const char *path) in ramfs_vfs_mkdir()
350 static int32_t ramfs_vfs_fpathconf(vfs_file_t *fp, int32_t name) in ramfs_vfs_fpathconf()
360 static void ramfs_vfs_rewinddir(vfs_file_t *fp, vfs_dir_t *dir) in ramfs_vfs_rewinddir()
368 static int ramfs_vfs_rmdir(vfs_file_t *fp, const char *path) in ramfs_vfs_rmdir()
373 static int ramfs_vfs_sync(vfs_file_t *fp) in ramfs_vfs_sync()
[all …]
/AliOS-Things-master/components/vfs/
A Dvfs_file.c14 static vfs_file_t g_files[VFS_MAX_FILE_NUM];
20 int32_t vfs_fd_get(vfs_file_t *file) in vfs_fd_get()
25 static vfs_file_t *vfs_file_get_helper(int32_t fd, int explore) in vfs_file_get_helper()
28 vfs_file_t *f; in vfs_file_get_helper()
63 vfs_file_t *vfs_file_get(int32_t fd) in vfs_file_get()
68 vfs_file_t *vfs_file_get2(int32_t fd) in vfs_file_get2()
73 vfs_file_t *vfs_file_new(vfs_inode_t *node) in vfs_file_new()
76 vfs_file_t *f; in vfs_file_new()
103 void vfs_file_del(vfs_file_t *file) in vfs_file_del()
A Dvfs.c124 vfs_file_t *f; in vfs_close_without_glock()
165 vfs_file_t *f; in set_normal_redirect_fd()
199 vfs_file_t *f; in clear_normal_redirect_fd()
263 vfs_file_t *f; in vfs_open()
351 vfs_file_t *f; in vfs_close()
429 vfs_file_t *f; in vfs_read()
482 vfs_file_t *f; in vfs_write()
548 vfs_file_t *f; in vfs_ioctl()
601 vfs_file_t *f; in vfs_do_pollfd()
653 vfs_file_t *f; in vfs_lseek()
[all …]
A Dvfs_inode.c64 vfs_file_t *f; in close_all_files_on_node()
/AliOS-Things-master/components/fatfs/src/
A Dfatfs_vfs.c160 static int32_t fatfs_vfs_close(vfs_file_t *fp) in fatfs_vfs_close()
177 static int32_t fatfs_vfs_read(vfs_file_t *fp, char *buf, uint32_t len) in fatfs_vfs_read()
268 static int32_t fatfs_vfs_sync(vfs_file_t *fp) in fatfs_vfs_sync()
361 static int32_t fatfs_vfs_unlink(vfs_file_t *fp, const char *path) in fatfs_vfs_unlink()
402 static vfs_dir_t *fatfs_vfs_opendir(vfs_file_t *fp, const char *path) in fatfs_vfs_opendir()
429 static vfs_dirent_t *fatfs_vfs_readdir(vfs_file_t *fp, vfs_dir_t *dir) in fatfs_vfs_readdir()
458 static int32_t fatfs_vfs_closedir(vfs_file_t *fp, vfs_dir_t *dir) in fatfs_vfs_closedir()
475 static int32_t fatfs_vfs_mkdir(vfs_file_t *fp, const char *path) in fatfs_vfs_mkdir()
491 static int32_t fatfs_vfs_rmdir(vfs_file_t *fp, const char *path) in fatfs_vfs_rmdir()
508 static void fatfs_vfs_rewinddir(vfs_file_t *fp, vfs_dir_t *dir) in fatfs_vfs_rewinddir()
[all …]
/AliOS-Things-master/components/littlefs/src/
A Dlittlefs_vfs.c81 static int vfs_to_lfs_idx(vfs_file_t *vfs) in vfs_to_lfs_idx()
859 static int32_t lfs_vfs_close(vfs_file_t *fp) in lfs_vfs_close()
944 static int32_t lfs_vfs_sync(vfs_file_t *fp) in lfs_vfs_sync()
961 static int32_t lfs_vfs_fstat(vfs_file_t *fp, vfs_stat_t *st) in lfs_vfs_fstat()
1070 static int32_t lfs_vfs_remove(vfs_file_t *fp, const char *path) in lfs_vfs_remove()
1152 static vfs_dir_t *lfs_vfs_opendir(vfs_file_t *fp, const char *path) in lfs_vfs_opendir()
1238 static int32_t lfs_vfs_closedir(vfs_file_t *fp, vfs_dir_t *dir) in lfs_vfs_closedir()
1266 static int32_t lfs_vfs_mkdir(vfs_file_t *fp, const char *path) in lfs_vfs_mkdir()
1300 static int32_t lfs_vfs_rmdir (vfs_file_t *fp, const char *path) in lfs_vfs_rmdir()
1331 static void lfs_vfs_rewinddir(vfs_file_t *fp, vfs_dir_t *dir) in lfs_vfs_rewinddir()
[all …]

Completed in 24 milliseconds