Lines Matching refs:zdp
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()
400 CHECKIF(zdp->mp->fs->readdir == NULL) { in fs_readdir()
406 rc = zdp->mp->fs->readdir(zdp, entry); in fs_readdir()
429 if (zdp->dirp == NULL) { in fs_readdir()
442 if (node == zdp->dirp) { in fs_readdir()
471 zdp->dirp = next; in fs_readdir()
475 int fs_closedir(struct fs_dir_t *zdp) in fs_closedir() argument
479 if (zdp->mp == NULL) { in fs_closedir()
481 zdp->dirp = NULL; in fs_closedir()
485 CHECKIF(zdp->mp->fs->closedir == NULL) { in fs_closedir()
489 rc = zdp->mp->fs->closedir(zdp); in fs_closedir()
495 zdp->mp = NULL; in fs_closedir()
496 zdp->dirp = NULL; in fs_closedir()