Searched refs:zfp (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-2.7.6/subsys/fs/ |
D | fat_fs.c | 84 static int fatfs_open(struct fs_file_t *zfp, const char *file_name, in fatfs_open() argument 93 zfp->filep = ptr; in fatfs_open() 100 res = f_open(zfp->filep, &file_name[1], fs_mode); in fatfs_open() 104 zfp->filep = NULL; in fatfs_open() 110 static int fatfs_close(struct fs_file_t *zfp) in fatfs_close() argument 114 res = f_close(zfp->filep); in fatfs_close() 117 k_mem_slab_free(&fatfs_filep_pool, &zfp->filep); in fatfs_close() 118 zfp->filep = NULL; in fatfs_close() 159 static ssize_t fatfs_read(struct fs_file_t *zfp, void *ptr, size_t size) in fatfs_read() argument 164 res = f_read(zfp->filep, ptr, size, &br); in fatfs_read() [all …]
|
D | fs.c | 132 int fs_open(struct fs_file_t *zfp, const char *file_name, fs_mode_t flags) in fs_open() argument 138 zfp->flags = flags; in fs_open() 146 if (zfp->mp != NULL) { in fs_open() 165 zfp->mp = mp; in fs_open() 166 rc = mp->fs->open(zfp, file_name, flags); in fs_open() 169 zfp->mp = NULL; in fs_open() 176 int fs_close(struct fs_file_t *zfp) in fs_close() argument 180 if (zfp->mp == NULL) { in fs_close() 184 CHECKIF(zfp->mp->fs->close == NULL) { in fs_close() 188 rc = zfp->mp->fs->close(zfp); in fs_close() [all …]
|
/Zephyr-Core-2.7.6/tests/subsys/fs/fs_api/src/ |
D | test_fs.c | 28 int temp_open(struct fs_file_t *zfp, const char *file_name, fs_mode_t flags) in temp_open() argument 30 if (zfp == NULL || file_name == NULL) { in temp_open() 34 if (zfp->filep) { in temp_open() 35 if (strcmp(zfp->filep, file_name) == 0) { in temp_open() 45 zfp->filep = (char *)file_name; in temp_open() 49 static int temp_close(struct fs_file_t *zfp) in temp_close() argument 51 if (zfp == NULL) { in temp_close() 55 if (zfp->filep) { in temp_close() 56 zfp->filep = NULL; in temp_close() 89 static ssize_t temp_read(struct fs_file_t *zfp, void *ptr, size_t size) in temp_read() argument [all …]
|
/Zephyr-Core-2.7.6/include/fs/ |
D | fs.h | 215 static inline void fs_file_t_init(struct fs_file_t *zfp) in fs_file_t_init() argument 217 *zfp = (struct fs_file_t){ 0 }; in fs_file_t_init() 263 int fs_open(struct fs_file_t *zfp, const char *file_name, fs_mode_t flags); 275 int fs_close(struct fs_file_t *zfp); 329 ssize_t fs_read(struct fs_file_t *zfp, void *ptr, size_t size); 349 ssize_t fs_write(struct fs_file_t *zfp, const void *ptr, size_t size); 368 int fs_seek(struct fs_file_t *zfp, off_t offset, int whence); 383 off_t fs_tell(struct fs_file_t *zfp); 404 int fs_truncate(struct fs_file_t *zfp, off_t length); 420 int fs_sync(struct fs_file_t *zfp);
|
/Zephyr-Core-2.7.6/subsys/settings/src/ |
D | settings_file.c | 197 static int settings_file_create_or_replace(struct fs_file_t *zfp, in settings_file_create_or_replace() argument 212 return fs_open(zfp, file_name, FS_O_CREATE | FS_O_RDWR); in settings_file_create_or_replace()
|
/Zephyr-Core-2.7.6/doc/releases/ |
D | release-notes-2.5.rst | 1495 * :github:`29478` - fs: fs_open can corrupt fs_open_t object given via zfp parameter
|