/Zephyr-Core-3.7.0/tests/subsys/fs/multi-fs/src/ |
D | test_common_dir.c | 74 struct fs_dir_t dirp; in test_lsdir() local 79 fs_dir_t_init(&dirp); in test_lsdir() 82 res = fs_opendir(&dirp, path); in test_lsdir() 91 res = fs_readdir(&dirp, &entry); in test_lsdir() 107 fs_closedir(&dirp); in test_lsdir() 115 struct fs_dir_t dirp; in test_rmdir() local 118 fs_dir_t_init(&dirp); in test_rmdir() 125 res = fs_opendir(&dirp, dir_path); in test_rmdir() 135 res = fs_readdir(&dirp, &entry); in test_rmdir() 150 fs_closedir(&dirp); in test_rmdir() [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_dir.c | 63 struct fs_dir_t dirp; in test_lsdir() local 68 fs_dir_t_init(&dirp); in test_lsdir() 71 res = fs_opendir(&dirp, path); in test_lsdir() 80 res = fs_readdir(&dirp, &entry); in test_lsdir() 96 fs_closedir(&dirp); in test_lsdir() 104 struct fs_dir_t dirp; in test_rmdir() local 110 fs_dir_t_init(&dirp); in test_rmdir() 117 res = fs_opendir(&dirp, TEST_DIR); in test_rmdir() 125 res = fs_readdir(&dirp, &entry); in test_rmdir() 139 fs_closedir(&dirp); in test_rmdir() [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/fs/fat_fs_dual_drive/src/ |
D | test_fat_dir.c | 68 struct fs_dir_t dirp; in test_lsdir() local 73 fs_dir_t_init(&dirp); in test_lsdir() 76 res = fs_opendir(&dirp, path); in test_lsdir() 85 res = fs_readdir(&dirp, &entry); in test_lsdir() 101 fs_closedir(&dirp); in test_lsdir() 109 struct fs_dir_t dirp; in test_rmdir() local 115 fs_dir_t_init(&dirp); in test_rmdir() 122 res = fs_opendir(&dirp, dir); in test_rmdir() 130 res = fs_readdir(&dirp, &entry); in test_rmdir() 144 fs_closedir(&dirp); in test_rmdir() [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/fs/fs_api/src/ |
D | test_fs_dir_file.c | 114 struct fs_dir_t dirp; in ZTEST() local 116 memset(&dirp, 0xff, sizeof(dirp)); in ZTEST() 118 fs_dir_t_init(&dirp); in ZTEST() 119 zassert_equal(dirp.mp, NULL, "Expected to be initialized to NULL"); in ZTEST() 120 zassert_equal(dirp.dirp, NULL, "Expected to be initialized to NULL"); in ZTEST() 298 struct fs_dir_t dirp, dirp2, dirp3; in test_opendir() local 302 fs_dir_t_init(&dirp); in test_opendir() 311 ret = fs_opendir(&dirp, "ab"); in test_opendir() 315 ret = fs_opendir(&dirp, ""); in test_opendir() 319 ret = fs_opendir(&dirp, "/SDCARD:/test_dir"); in test_opendir() [all …]
|
D | test_fs.c | 227 zdp->dirp = (char *)path; in temp_opendir() 277 if (!(zdp->dirp)) { in temp_closedir() 280 zdp->dirp = NULL; in temp_closedir()
|
/Zephyr-Core-3.7.0/tests/posix/fs/src/ |
D | test_fs_dir.c | 56 DIR *dirp; in test_lsdir() local 63 dirp = opendir(path); in test_lsdir() 64 if (dirp == NULL) { in test_lsdir() 72 while ((entry = readdir(dirp)) != NULL) { in test_lsdir() 86 closedir(dirp); in test_lsdir()
|
/Zephyr-Core-3.7.0/include/zephyr/posix/ |
D | dirent.h | 28 int closedir(DIR *dirp); 29 struct dirent *readdir(DIR *dirp);
|
/Zephyr-Core-3.7.0/samples/subsys/fs/fs_sample/src/ |
D | main.c | 193 struct fs_dir_t dirp; in lsdir() local 197 fs_dir_t_init(&dirp); in lsdir() 200 res = fs_opendir(&dirp, path); in lsdir() 209 res = fs_readdir(&dirp, &entry); in lsdir() 226 fs_closedir(&dirp); in lsdir()
|
/Zephyr-Core-3.7.0/include/zephyr/fs/ |
D | fs_sys.h | 107 int (*opendir)(struct fs_dir_t *dirp, const char *fs_path); 115 int (*readdir)(struct fs_dir_t *dirp, struct fs_dirent *entry); 122 int (*closedir)(struct fs_dir_t *dirp);
|
D | fs_interface.h | 92 void *dirp; member
|
D | fs.h | 255 zdp->dirp = NULL; in fs_dir_t_init()
|
/Zephyr-Core-3.7.0/lib/posix/options/ |
D | fs.c | 260 int closedir(DIR *dirp) in closedir() argument 263 struct posix_fs_desc *ptr = dirp; in closedir() 265 if (dirp == NULL) { in closedir() 287 struct dirent *readdir(DIR *dirp) in readdir() argument 290 struct posix_fs_desc *ptr = dirp; in readdir() 292 if (dirp == NULL) { in readdir()
|
/Zephyr-Core-3.7.0/subsys/fs/ext2/ |
D | ext2_ops.c | 288 static int ext2_opendir(struct fs_dir_t *dirp, const char *fs_path) in ext2_opendir() argument 292 const char *path = fs_impl_strip_prefix(fs_path, dirp->mp); in ext2_opendir() 293 struct ext2_data *fs = dirp->mp->fs_data; in ext2_opendir() 327 dirp->dirp = dir; in ext2_opendir() 335 static int ext2_readdir(struct fs_dir_t *dirp, struct fs_dirent *entry) in ext2_readdir() argument 337 struct ext2_file *dir = dirp->dirp; in ext2_readdir() 347 static int ext2_closedir(struct fs_dir_t *dirp) in ext2_closedir() argument 349 struct ext2_file *dir = dirp->dirp; in ext2_closedir()
|
/Zephyr-Core-3.7.0/samples/subsys/fs/littlefs/src/ |
D | main.c | 29 struct fs_dir_t dirp; in lsdir() local 32 fs_dir_t_init(&dirp); in lsdir() 35 res = fs_opendir(&dirp, path); in lsdir() 44 res = fs_readdir(&dirp, &entry); in lsdir() 63 fs_closedir(&dirp); in lsdir()
|
/Zephyr-Core-3.7.0/subsys/fs/ |
D | fat_fs.c | 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() 371 res = f_readdir(zdp->dirp, &fno); in fatfs_readdir() 388 res = f_closedir(zdp->dirp); in fatfs_closedir() 391 k_mem_slab_free(&fatfs_dirp_pool, zdp->dirp); in fatfs_closedir()
|
D | fs.c | 356 if (zdp->mp != NULL || zdp->dirp != NULL) { in fs_opendir() 366 zdp->dirp = sys_dlist_peek_head(&fs_mnt_list); in fs_opendir() 387 zdp->dirp = NULL; in fs_opendir() 429 if (zdp->dirp == NULL) { in fs_readdir() 442 if (node == zdp->dirp) { in fs_readdir() 471 zdp->dirp = next; in fs_readdir() 481 zdp->dirp = NULL; in fs_closedir() 496 zdp->dirp = NULL; in fs_closedir()
|
D | littlefs_fs.c | 471 if (k_mem_slab_alloc(&lfs_dir_pool, &dp->dirp, K_NO_WAIT) != 0) { in littlefs_opendir() 475 memset(dp->dirp, 0, sizeof(struct lfs_dir)); in littlefs_opendir() 481 int ret = lfs_dir_open(&fs->lfs, dp->dirp, path); in littlefs_opendir() 486 k_mem_slab_free(&lfs_dir_pool, dp->dirp); in littlefs_opendir() 508 int ret = lfs_dir_read(&fs->lfs, dp->dirp, &info); in littlefs_readdir() 528 int ret = lfs_dir_close(&fs->lfs, dp->dirp); in littlefs_closedir() 532 k_mem_slab_free(&lfs_dir_pool, dp->dirp); in littlefs_closedir()
|