| /components/dfs/dfs_v2/src/ |
| A D | dfs_mnt.c | 55 if (mnt) in dfs_mnt_create() 108 mnt->parent = dfs_mnt_ref(mnt); in dfs_mnt_insert() 228 if (mnt) in dfs_mnt_dev_lookup() 263 if (mnt) in dfs_mnt_lookup() 317 if (mnt) in dfs_mnt_ref() 343 if (mnt) in dfs_mnt_unref() 353 mnt->fs_ops->umount(mnt); in dfs_mnt_unref() 537 if (mnt) path = mnt->fullpath; in dfs_mnt_get_mounted_path() 563 … mnt->fs_ops->name, mnt->dev_id->parent.name, mnt->fullpath, rt_atomic_load(&(mnt->ref_count))); in _mnt_dump() 568 mnt->fs_ops->name, mnt->fullpath, rt_atomic_load(&(mnt->ref_count))); in _mnt_dump() [all …]
|
| A D | dfs_dentry.c | 66 if (mnt == RT_NULL || path == RT_NULL) in _dentry_create() 86 dentry->mnt = dfs_mnt_ref(mnt); in _dentry_create() 110 return _dentry_create(mnt, fullpath, RT_FALSE); in dfs_dentry_create() 194 if (dentry->mnt) in dfs_dentry_unref() 196 dfs_mnt_unref(dentry->mnt); in dfs_dentry_unref() 239 if (entry->mnt == mnt && !strcmp(entry->pathname, path)) in _dentry_hash_lookup() 285 int mntpoint_len = strlen(mnt->fullpath); in dfs_dentry_lookup() 297 dentry = _dentry_hash_lookup(mnt, path); in dfs_dentry_lookup() 300 if (mnt->fs_ops->lookup) in dfs_dentry_lookup() 310 if (dfs_is_mounted(mnt) == 0) in dfs_dentry_lookup() [all …]
|
| A D | dfs_file.c | 401 if (*mnt && fullpath) in dfs_file_realpath() 446 *mnt = tmp_mnt; in dfs_file_realpath() 586 if (mnt) in dfs_file_open() 1261 if (mnt) in dfs_file_stat() 1330 if (mnt) in dfs_file_lstat() 1439 if (mnt) in dfs_file_setattr() 1694 if (mnt) in dfs_file_unlink() 1810 if (mnt == RT_NULL) in dfs_file_link() 1941 if (mnt) in dfs_file_symlink() 2046 if (mnt) in dfs_file_readlink() [all …]
|
| A D | dfs_fs.c | 148 struct dfs_mnt *mnt = RT_NULL; in dfs_remount() local 164 if (mnt) in dfs_remount() 450 struct dfs_mnt *mnt = RT_NULL; in dfs_umount() local 457 if (mnt) in dfs_umount() 519 if (mnt && !(mnt->flags & MNT_IS_MOUNTED)) in dfs_is_mounted() 595 if (mnt) in dfs_mkfs() 630 struct dfs_mnt *mnt; in dfs_statfs() local 641 mnt = dfs_mnt_lookup(fullpath); in dfs_statfs() 642 if (mnt) in dfs_statfs() 644 if (mnt->fs_ops->statfs) in dfs_statfs() [all …]
|
| A D | dfs_vnode.c | 38 vnode->mnt = RT_NULL; in dfs_vnode_init() 91 if (vnode->mnt) in dfs_vnode_destroy() 93 DLOG(msg, "vnode", vnode->mnt->fs_ops->name, DLOG_MSG, "fs_ops->free_vnode"); in dfs_vnode_destroy() 94 vnode->mnt->fs_ops->free_vnode(vnode); in dfs_vnode_destroy() 161 if (vnode->mnt) in dfs_vnode_unref() 163 DLOG(msg, "vnode", vnode->mnt->fs_ops->name, DLOG_MSG, "fs_ops->free_vnode"); in dfs_vnode_unref() 164 vnode->mnt->fs_ops->free_vnode(vnode); in dfs_vnode_unref()
|
| A D | dfs_pcache.c | 213 if (aspace && aspace->mnt == mnt) in _pcache_clean() 225 if (aspace && aspace->mnt == mnt) in _pcache_clean() 247 void dfs_pcache_unmount(struct dfs_mnt *mnt) in dfs_pcache_unmount() argument 249 _pcache_clean(mnt, dfs_aspace_release); in dfs_pcache_unmount() 272 void dfs_pcache_clean(struct dfs_mnt *mnt) in dfs_pcache_clean() argument 274 _pcache_clean(mnt, _dummy_cb); in dfs_pcache_clean() 554 if (aspace->mnt == dentry->mnt in dfs_aspace_hash_lookup() 696 if (dentry && dentry->mnt) in _dfs_aspace_create() 698 aspace->mnt = dentry->mnt; in _dfs_aspace_create() 923 if (aspace->mnt) in dfs_pcache_dump() [all …]
|
| A D | dfs_file_mmap.c | 148 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_page_fault() 208 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_varea_close() 455 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_varea_split() 498 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_varea_merge() 673 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in dfs_file_mmap() 678 …LOG_E("File mapping is not supported, file: %s%s", file->dentry->mnt->fullpath, file->dentry->path… in dfs_file_mmap() 687 …LOG_E("File mapping support is not enabled, file: %s%s", file->dentry->mnt->fullpath, file->dentry… in dfs_file_mmap()
|
| A D | dfs_posix.c | 574 if (dfs_is_mounted(file->dentry->mnt) == 0) in fstat() 576 ret = file->dentry->mnt->fs_ops->stat(file->dentry, buf); in fstat() 795 if (dfs_is_mounted(file->dentry->mnt) == 0) in fstatfs() 797 ret = file->dentry->mnt->fs_ops->statfs(file->dentry->mnt, buf); in fstatfs()
|
| A D | dfs.c | 1137 rt_kprintf("%s%s\n", file->dentry->mnt->fullpath, file->dentry->pathname); in list_fd()
|
| /components/dfs/dfs_v2/include/ |
| A D | dfs_mnt.h | 54 int dfs_mnt_destroy(struct dfs_mnt* mnt); 55 int dfs_mnt_list(struct dfs_mnt* mnt); 56 int dfs_mnt_insert(struct dfs_mnt* mnt, struct dfs_mnt* child); 62 struct dfs_mnt* dfs_mnt_ref(struct dfs_mnt* mnt); 63 int dfs_mnt_unref(struct dfs_mnt* mnt); 65 int dfs_mnt_umount(struct dfs_mnt *mnt, int flags); 66 int dfs_mnt_setflags(struct dfs_mnt *mnt, int flags); 68 rt_bool_t dfs_mnt_has_child_mnt(struct dfs_mnt *mnt, const char* fullpath); 70 int dfs_mnt_foreach(struct dfs_mnt* (*func)(struct dfs_mnt *mnt, void *parameter), void *parameter); 71 int dfs_mnt_umount_iter(rt_bool_t (*filter)(struct dfs_mnt *mnt, void *parameter), void *parameter); [all …]
|
| A D | dfs_dentry.h | 38 struct dfs_mnt *mnt; /* which mounted file system does this dentry belong to */ member 43 struct dfs_dentry *dfs_dentry_create(struct dfs_mnt *mnt, char *fullpath); 44 struct dfs_dentry *dfs_dentry_create_rela(struct dfs_mnt *mnt, char *rela_path); 48 struct dfs_dentry *dfs_dentry_lookup(struct dfs_mnt *mnt, const char *path, uint32_t flags);
|
| A D | dfs_fs.h | 88 int (*mount)(struct dfs_mnt *mnt, unsigned long rwflag, const void *data); 89 int (*umount)(struct dfs_mnt *mnt); 101 int (*statfs)(struct dfs_mnt *mnt, struct statfs *buf); 130 int dfs_is_mounted(struct dfs_mnt *mnt);
|
| A D | dfs_pcache.h | 72 struct dfs_mnt *mnt; /* Mount point this space belongs to */ member 125 void dfs_pcache_unmount(struct dfs_mnt *mnt); 126 void dfs_pcache_clean(struct dfs_mnt *mnt);
|
| A D | dfs_file.h | 64 struct dfs_mnt *mnt; /* which mounted file system does this vnode belong to */ member 198 char *dfs_file_realpath(struct dfs_mnt **mnt, const char *fullpath, int mode);
|
| /components/dfs/dfs_v2/filesystems/procfs/ |
| A D | proc_mounts.c | 33 static struct dfs_mnt* mnt_show(struct dfs_mnt *mnt, void *parameter) in mnt_show() argument 37 if (mnt) in mnt_show() 39 if (mnt->dev_id) in mnt_show() 41 dfs_seq_printf(seq, "%s %s %s %s 0 0\n", mnt->dev_id->parent.name, mnt->fullpath, in mnt_show() 42 mnt->fs_ops->name, mnt_flag(mnt->flags)); in mnt_show() 46 dfs_seq_printf(seq, "%s %s %s %s 0 0\n", mnt->fs_ops->name, mnt->fullpath, in mnt_show() 47 mnt->fs_ops->name, mnt_flag(mnt->flags)); in mnt_show()
|
| A D | procfs.c | 238 static int dfs_procfs_mount(struct dfs_mnt *mnt, unsigned long rwflag, const void *data) in dfs_procfs_mount() argument 240 RT_ASSERT(mnt != RT_NULL); in dfs_procfs_mount() 245 static int dfs_procfs_umount(struct dfs_mnt *mnt) in dfs_procfs_umount() argument 247 RT_ASSERT(mnt != RT_NULL); in dfs_procfs_umount() 296 st->st_dev = (dev_t)(rt_ubase_t)(dentry->mnt->dev_id); in dfs_procfs_stat() 317 static int dfs_procfs_statfs(struct dfs_mnt *mnt, struct statfs *buf) in dfs_procfs_statfs() argument 319 if (mnt && buf) in dfs_procfs_statfs() 361 vnode->mnt = dentry->mnt; in dfs_procfs_lookup()
|
| /components/dfs/dfs_v2/filesystems/devfs/ |
| A D | devtmpfs.c | 161 mnt->data = superblock; in devtmpfs_mount() 180 mnt->data = NULL; in devtmpfs_unmount() 246 RT_ASSERT(mnt != NULL); in devtmpfs_statfs() 296 RT_ASSERT(file->dentry->mnt); in devtmpfs_getdents() 393 RT_ASSERT(dentry->mnt); in devtmpfs_readlink() 436 RT_ASSERT(dentry->mnt); in devtmpfs_unlink() 465 RT_ASSERT(dentry->mnt); in devtmpfs_setattr() 488 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in devtmpfs_create_vnode() 533 vnode->mnt = dentry->mnt; in devtmpfs_create_vnode() 565 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in devtmpfs_lookup() [all …]
|
| A D | devfs.c | 53 …rt_snprintf(device_name, DFS_PATH_MAX, "%s%s", de->mnt->fullpath + sizeof("/dev") - 1, de->pathnam… in dfs_devfs_open()
|
| /components/dfs/dfs_v2/filesystems/ptyfs/ |
| A D | ptyfs.c | 367 mnt->data = sb; in ptyfs_ops_mount() 368 sb->mount = mnt; in ptyfs_ops_mount() 393 RT_ASSERT(dentry->mnt); in ptyfs_ops_setattr() 416 RT_ASSERT(mnt != NULL); in ptyfs_ops_statfs() 419 superblock = (struct ptyfs_sb *)mnt->data; in ptyfs_ops_statfs() 464 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in ptyfs_ops_lookup() 480 vnode->mnt = dentry->mnt; in ptyfs_ops_lookup() 499 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in ptyfs_ops_create_vnode() 504 sb = (struct ptyfs_sb *)dentry->mnt->data; in ptyfs_ops_create_vnode() 523 vnode->mnt = dentry->mnt; in ptyfs_ops_create_vnode() [all …]
|
| /components/dfs/dfs_v2/filesystems/elmfat/ |
| A D | dfs_elm.c | 138 if (mnt->dev_id == RT_NULL in dfs_elm_mount() 198 mnt->data = fat; in dfs_elm_mount() 218 fat = (FATFS *)mnt->data; in dfs_elm_unmount() 232 mnt->data = RT_NULL; in dfs_elm_unmount() 348 f = (FATFS *)mnt->data; in dfs_elm_statfs() 379 struct dfs_mnt *mnt = file->vnode->mnt; in dfs_elm_open() local 394 if (mnt == NULL) in dfs_elm_open() 943 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in dfs_elm_lookup() 956 vnode->mnt = dentry->mnt; in dfs_elm_lookup() 982 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in dfs_elm_create_vnode() [all …]
|
| /components/dfs/dfs_v2/filesystems/romfs/ |
| A D | dfs_romfs.c | 37 static int dfs_romfs_mount(struct dfs_mnt *mnt, unsigned long rwflag, const void *data) in dfs_romfs_mount() argument 45 mnt->data = root_dirent; in dfs_romfs_mount() 177 RT_ASSERT(dentry->mnt != RT_NULL); in dfs_romfs_lookup() 179 root_dirent = (struct romfs_dirent *)dentry->mnt->data; in dfs_romfs_lookup() 205 vnode->mnt = dentry->mnt; in dfs_romfs_lookup() 268 struct dfs_mnt *mnt; in dfs_romfs_open() local 275 mnt = file->dentry->mnt; in dfs_romfs_open() 276 RT_ASSERT(mnt != RT_NULL); in dfs_romfs_open() 278 root_dirent = (struct romfs_dirent *)mnt->data; in dfs_romfs_open()
|
| /components/dfs/dfs_v2/filesystems/mqueue/ |
| A D | dfs_mqueue.c | 46 int dfs_mqueue_mount(struct dfs_mnt *mnt, unsigned long rwflag, const void *data) { in dfs_mqueue_mount() argument 50 int dfs_mqueue_umount(struct dfs_mnt *mnt) { in dfs_mqueue_umount() argument 54 int dfs_mqueue_statfs(struct dfs_mnt *mnt, struct statfs *buf) { in dfs_mqueue_statfs() argument 134 if (dentry == NULL || dentry->mnt == NULL) { in dfs_mqueue_create_vnode() 183 if (dentry == NULL || dentry->mnt == NULL) { in _dfs_mqueue_lookup() 196 vnode->mnt = dentry->mnt; in _dfs_mqueue_lookup() 203 vnode->mnt = dentry->mnt; in _dfs_mqueue_lookup()
|
| /components/dfs/dfs_v2/filesystems/tmpfs/ |
| A D | dfs_tmpfs.c | 131 static int dfs_tmpfs_mount(struct dfs_mnt *mnt, in dfs_tmpfs_mount() argument 150 mnt->data = superblock; in dfs_tmpfs_mount() 160 static int dfs_tmpfs_unmount(struct dfs_mnt *mnt) in dfs_tmpfs_unmount() argument 165 superblock = (struct tmpfs_sb *)mnt->data; in dfs_tmpfs_unmount() 168 mnt->data = NULL; in dfs_tmpfs_unmount() 179 superblock = (struct tmpfs_sb *)mnt->data; in dfs_tmpfs_statfs() 470 superblock = (struct tmpfs_sb *)dentry->mnt->data; in dfs_tmpfs_stat() 647 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in _dfs_tmpfs_lookup() 674 vnode->mnt = dentry->mnt; in _dfs_tmpfs_lookup() 692 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in dfs_tmpfs_create_vnode() [all …]
|
| /components/dfs/dfs_v2/filesystems/cromfs/ |
| A D | dfs_cromfs.c | 531 ci->device = mnt->dev_id; in dfs_cromfs_mount() 573 mnt->data = ci; in dfs_cromfs_mount() 589 ci = (cromfs_info *)mnt->data; in dfs_cromfs_unmount() 791 ci = (cromfs_info *)file->dentry->mnt->data; in dfs_cromfs_read() 957 ci = (cromfs_info *)file->dentry->mnt->data; in dfs_cromfs_close() 997 ci = (cromfs_info *)file->dentry->mnt->data; in dfs_cromfs_open() 1073 ci = (cromfs_info *)dentry->mnt->data; in dfs_cromfs_stat() 1202 RT_ASSERT(dentry->mnt != RT_NULL); in dfs_cromfs_lookup() 1204 ci = (cromfs_info *)dentry->mnt->data; in dfs_cromfs_lookup() 1240 vnode->mnt = dentry->mnt; in dfs_cromfs_lookup() [all …]
|
| /components/drivers/core/ |
| A D | SConscript | 14 src += ['mnt.c'];
|