Searched refs:zdp (Results 1 – 5 of 5) sorted by relevance
/Zephyr-Core-3.7.0/subsys/fs/ |
D | fs.c | 345 int fs_opendir(struct fs_dir_t *zdp, const char *abs_path) in fs_opendir() argument 356 if (zdp->mp != NULL || zdp->dirp != NULL) { in fs_opendir() 365 zdp->mp = NULL; in fs_opendir() 366 zdp->dirp = sys_dlist_peek_head(&fs_mnt_list); in fs_opendir() 383 zdp->mp = mp; in fs_opendir() 384 rc = zdp->mp->fs->opendir(zdp, abs_path); in fs_opendir() 386 zdp->mp = NULL; in fs_opendir() 387 zdp->dirp = NULL; in fs_opendir() 394 int fs_readdir(struct fs_dir_t *zdp, struct fs_dirent *entry) in fs_readdir() argument 396 if (zdp->mp) { in fs_readdir() [all …]
|
D | fat_fs.c | 344 static int fatfs_opendir(struct fs_dir_t *zdp, const char *path) in fatfs_opendir() argument 351 zdp->dirp = ptr; in fatfs_opendir() 356 res = f_opendir(zdp->dirp, translate_path(path)); in fatfs_opendir() 360 zdp->dirp = NULL; in fatfs_opendir() 366 static int fatfs_readdir(struct fs_dir_t *zdp, struct fs_dirent *entry) in fatfs_readdir() argument 371 res = f_readdir(zdp->dirp, &fno); in fatfs_readdir() 384 static int fatfs_closedir(struct fs_dir_t *zdp) in fatfs_closedir() argument 388 res = f_closedir(zdp->dirp); in fatfs_closedir() 391 k_mem_slab_free(&fatfs_dirp_pool, zdp->dirp); in fatfs_closedir()
|
/Zephyr-Core-3.7.0/include/zephyr/fs/ |
D | fs.h | 253 static inline void fs_dir_t_init(struct fs_dir_t *zdp) in fs_dir_t_init() argument 255 zdp->dirp = NULL; in fs_dir_t_init() 256 zdp->mp = NULL; in fs_dir_t_init() 497 int fs_opendir(struct fs_dir_t *zdp, const char *path); 518 int fs_readdir(struct fs_dir_t *zdp, struct fs_dirent *entry); 531 int fs_closedir(struct fs_dir_t *zdp);
|
/Zephyr-Core-3.7.0/tests/subsys/fs/fs_api/src/ |
D | test_fs.c | 217 static int temp_opendir(struct fs_dir_t *zdp, const char *path) in temp_opendir() argument 219 if (zdp == NULL || path == NULL) { in temp_opendir() 227 zdp->dirp = (char *)path; in temp_opendir() 232 static int temp_readdir(struct fs_dir_t *zdp, struct fs_dirent *entry) in temp_readdir() argument 234 if (!zdp) { in temp_readdir() 271 static int temp_closedir(struct fs_dir_t *zdp) in temp_closedir() argument 273 if (!zdp) { in temp_closedir() 277 if (!(zdp->dirp)) { in temp_closedir() 280 zdp->dirp = NULL; in temp_closedir()
|
/Zephyr-Core-3.7.0/doc/releases/ |
D | release-notes-2.5.rst | 1033 * :github:`31749` - fs: fs_opendir can corrupt fs_dir_t object given via zdp parameter
|