| /components/dfs/dfs_v2/src/ |
| A D | dfs_dentry.c | 68 return dentry; in _dentry_create() 72 if (dentry) in _dentry_create() 94 return dentry; in _dentry_create() 140 if (dentry) in dfs_dentry_ref() 154 return dentry; in dfs_dentry_ref() 168 if (dentry) in dfs_dentry_unref() 218 return dentry; in dfs_dentry_unref() 261 …rt_list_insert_after(&hash_head.head[_dentry_hash(dentry->mnt, dentry->pathname)], &dentry->hashli… in dfs_dentry_insert() 298 if (!dentry) in dfs_dentry_lookup() 352 return dentry; in dfs_dentry_lookup() [all …]
|
| A D | dfs_file.c | 129 if (dentry && dentry->vnode->type == FT_SYMLINK) in _try_readlink() 139 dfs_dentry_unref(dentry); in _try_readlink() 597 if (dentry && dentry->vnode->type == FT_SYMLINK) in dfs_file_open() 620 if (dentry) in dfs_file_open() 696 if (dentry) in dfs_file_open() 699 file->dentry = dentry; in dfs_file_open() 1272 if (dentry) in dfs_file_stat() 1341 if (dentry) in dfs_file_lstat() 1450 if (dentry) in dfs_file_setattr() 2057 if (dentry) in dfs_file_readlink() [all …]
|
| A D | dfs_file_mmap.c | 146 if (file->dentry) in on_page_fault() 148 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_page_fault() 206 if (file->dentry) in on_varea_close() 208 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_varea_close() 245 return (file && file->dentry) ? file->dentry->pathname : "file-mapper"; in get_name() 453 if (file->dentry) in on_varea_split() 455 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_varea_split() 496 if (file->dentry) in on_varea_merge() 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() [all …]
|
| /components/dfs/dfs_v2/filesystems/procfs/ |
| A D | proc.c | 240 if (dentry) in proc_acquire() 257 if (dentry) in proc_release() 266 if (S_ISLNK(dentry->mode) && dentry->data) in proc_release() 310 if (dentry) in proc_mkdir_data() 315 dentry = proc_register(_parent, dentry); in proc_mkdir_data() 384 if (dentry) in proc_create_data() 389 dentry = proc_register(_parent, dentry); in proc_create_data() 413 if (dentry) in proc_create_single_data() 419 dentry = proc_register(_parent, dentry); in proc_create_single_data() 446 dentry = proc_register(_parent, dentry); in proc_symlink() [all …]
|
| A D | proc_tty.c | 70 struct proc_dentry *dentry; in proc_tty_init() local 73 if (!dentry) in proc_tty_init() 76 proc_release(dentry); in proc_tty_init() 79 proc_release(dentry); in proc_tty_init() 82 proc_release(dentry); in proc_tty_init() 85 if (dentry) in proc_tty_init() 87 dentry->seq_ops = &seq_ops; in proc_tty_init() 89 proc_release(dentry); in proc_tty_init() 92 if (dentry) in proc_tty_init() 94 dentry->seq_ops = &seq_ops; in proc_tty_init() [all …]
|
| A D | proc_pid.c | 69 lwp = lwp_from_pid_locked(dentry->pid); in stat_single_show() 207 struct proc_dentry *dentry = RT_NULL; in proc_pid_fd_lookup() local 232 if (dentry) in proc_pid_fd_lookup() 235 dentry->ref_count = 1; in proc_pid_fd_lookup() 237 dentry->data = (void *)dfs_dentry_full_path(file->dentry); in proc_pid_fd_lookup() 260 return dentry; in proc_pid_fd_lookup() 376 struct proc_dentry *dentry; in proc_pid() local 381 dentry = proc_mkdir(pid_str, 0); in proc_pid() 382 if (dentry) in proc_pid() 386 dentry->pid = pid; in proc_pid() [all …]
|
| A D | proc_net.c | 92 struct proc_dentry *dentry; in proc_net_init() local 94 dentry = proc_mkdir("net", NULL); in proc_net_init() 95 if (!dentry) in proc_net_init() 98 proc_release(dentry); in proc_net_init() 100 dentry = proc_create_data("net/route", 0, NULL, NULL, NULL); in proc_net_init() 101 if (dentry) in proc_net_init() 103 dentry->seq_ops = &seq_ops; in proc_net_init() 105 proc_release(dentry); in proc_net_init()
|
| A D | procfs.c | 255 struct proc_dentry *entry = dfs_proc_find(dentry->pathname); in dfs_procfs_readlink() 281 static int dfs_procfs_unlink(struct dfs_dentry *dentry) in dfs_procfs_unlink() argument 287 static int dfs_procfs_stat(struct dfs_dentry *dentry, struct stat *st) in dfs_procfs_stat() argument 292 if (dentry && dentry->vnode) in dfs_procfs_stat() 294 vnode = dentry->vnode; in dfs_procfs_stat() 296 st->st_dev = (dev_t)(rt_ubase_t)(dentry->mnt->dev_id); in dfs_procfs_stat() 297 st->st_ino = (ino_t)dfs_dentry_full_path_crc32(dentry); in dfs_procfs_stat() 332 static struct dfs_vnode *dfs_procfs_lookup(struct dfs_dentry *dentry) in dfs_procfs_lookup() argument 335 struct proc_dentry *entry = dfs_proc_find(dentry->pathname); in dfs_procfs_lookup() 361 vnode->mnt = dentry->mnt; in dfs_procfs_lookup() [all …]
|
| A D | proc_filesystems.c | 76 struct proc_dentry *dentry = proc_create_data("filesystems", 0, NULL, NULL, NULL); in proc_filesystems_init() local 77 if (dentry) in proc_filesystems_init() 79 dentry->seq_ops = &seq_ops; in proc_filesystems_init() 81 proc_release(dentry); in proc_filesystems_init()
|
| A D | proc_mounts.c | 92 struct proc_dentry *dentry = proc_create_data("mounts", 0, NULL, NULL, NULL); in proc_mounts_init() local 93 if (dentry) in proc_mounts_init() 95 dentry->seq_ops = &seq_ops; in proc_mounts_init() 97 proc_release(dentry); in proc_mounts_init()
|
| A D | proc.h | 27 int (*readlink)(struct proc_dentry *dentry, char *buf, int len); 63 struct proc_dentry *proc_acquire(struct proc_dentry *dentry); 64 void proc_release(struct proc_dentry *dentry); 66 void proc_remove(struct proc_dentry *dentry);
|
| A D | proc_uptime.c | 33 struct proc_dentry *dentry = proc_create_single_data("uptime", 0, NULL, single_show, NULL); in proc_uptime_init() local 34 proc_release(dentry); in proc_uptime_init()
|
| A D | proc_loadavg.c | 36 struct proc_dentry *dentry = proc_create_single_data("loadavg", 0, NULL, single_show, NULL); in proc_loadavg_init() local 37 proc_release(dentry); in proc_loadavg_init()
|
| A D | proc_cmdline.c | 48 struct proc_dentry *dentry = proc_create_single_data("cmdline", 0, NULL, single_show, NULL); in proc_cmdline_init() local 49 proc_release(dentry); in proc_cmdline_init()
|
| A D | proc_version.c | 40 struct proc_dentry *dentry = proc_create_single_data("version", 0, NULL, single_show, NULL); in proc_version_init() local 41 proc_release(dentry); in proc_version_init()
|
| A D | proc_partitions.c | 206 struct proc_dentry *dentry = proc_create_data("partitions", 0, NULL, NULL, NULL); in proc_partitions_init() local 207 if (dentry) in proc_partitions_init() 209 dentry->seq_ops = &seq_ops; in proc_partitions_init() 211 proc_release(dentry); in proc_partitions_init()
|
| /components/dfs/dfs_v2/filesystems/devfs/ |
| A D | devtmpfs.c | 264 if (dentry && dentry->vnode) in devtmpfs_stat() 266 vnode = dentry->vnode; in devtmpfs_stat() 295 RT_ASSERT(file->dentry); in devtmpfs_getdents() 392 RT_ASSERT(dentry); in devtmpfs_readlink() 393 RT_ASSERT(dentry->mnt); in devtmpfs_readlink() 435 RT_ASSERT(dentry); in devtmpfs_unlink() 436 RT_ASSERT(dentry->mnt); in devtmpfs_unlink() 464 RT_ASSERT(dentry); in devtmpfs_setattr() 465 RT_ASSERT(dentry->mnt); in devtmpfs_setattr() 488 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in devtmpfs_create_vnode() [all …]
|
| /components/dfs/dfs_v2/filesystems/mqueue/ |
| A D | dfs_mqueue.c | 66 int dfs_mqueue_stat(struct dfs_dentry *dentry, struct stat *st) { in dfs_mqueue_stat() argument 68 if (dentry && dentry->vnode) { in dfs_mqueue_stat() 69 vnode = dentry->vnode; in dfs_mqueue_stat() 116 int dfs_mqueue_unlink(struct dfs_dentry *dentry) { in dfs_mqueue_unlink() argument 119 mq_file = dfs_mqueue_lookup(dentry->pathname + 1, &size); in dfs_mqueue_unlink() 134 if (dentry == NULL || dentry->mnt == NULL) { in dfs_mqueue_create_vnode() 183 if (dentry == NULL || dentry->mnt == NULL) { in _dfs_mqueue_lookup() 187 if (dentry->pathname[0] == '/' && dentry->pathname[1] == '\0') { in _dfs_mqueue_lookup() 190 mq_file = dfs_mqueue_lookup(dentry->pathname + 1, &size); in _dfs_mqueue_lookup() 196 vnode->mnt = dentry->mnt; in _dfs_mqueue_lookup() [all …]
|
| /components/dfs/dfs_v2/include/ |
| A D | dfs_dentry.h | 45 struct dfs_dentry *dfs_dentry_unref(struct dfs_dentry *dentry); 46 struct dfs_dentry *dfs_dentry_ref(struct dfs_dentry *dentry); 47 void dfs_dentry_insert(struct dfs_dentry *dentry); 51 char* dfs_dentry_full_path(struct dfs_dentry* dentry); 54 char* dfs_dentry_pathname(struct dfs_dentry* dentry); 57 uint32_t dfs_dentry_full_path_crc32(struct dfs_dentry* dentry);
|
| A D | dfs_fs.h | 93 int (*readlink)(struct dfs_dentry *dentry, char *buf, int len); 95 int (*unlink)(struct dfs_dentry *dentry); 99 int (*stat)(struct dfs_dentry *dentry, struct stat *buf); 103 int (*setattr) (struct dfs_dentry *dentry, struct dfs_attr *attr); 105 struct dfs_vnode* (*lookup)(struct dfs_dentry *dentry); 107 struct dfs_vnode* (*create_vnode)(struct dfs_dentry *dentry, int type, mode_t mode);
|
| /components/dfs/dfs_v2/filesystems/ptyfs/ |
| A D | ptyfs.c | 392 RT_ASSERT(dentry); in ptyfs_ops_setattr() 393 RT_ASSERT(dentry->mnt); in ptyfs_ops_setattr() 434 if (dentry && dentry->vnode) in ptyfs_ops_stat() 436 vnode = dentry->vnode; in ptyfs_ops_stat() 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() 510 vnode_path = dentry->pathname; in ptyfs_ops_create_vnode() 523 vnode->mnt = dentry->mnt; in ptyfs_ops_create_vnode() 562 RT_ASSERT(file->dentry); in devpty_deffops_getdents() [all …]
|
| /components/drivers/pci/ |
| A D | procfs.c | 69 struct proc_dentry *dentry = file->vnode->data; in pci_read() local 70 struct rt_pci_device *pdev = dentry->data; in pci_read() 150 struct proc_dentry *dentry = file->vnode->data; in pci_write() local 151 struct rt_pci_device *pdev = dentry->data; in pci_write() 223 struct rt_pci_device *pdev = dentry->data; in pci_lseek() 260 struct proc_dentry *dentry; in pci_procfs_attach() local 270 if (!dentry) in pci_procfs_attach() 275 proc_release(dentry); in pci_procfs_attach() 342 struct proc_dentry *dentry; in pci_procfs_init() local 359 if (!dentry) in pci_procfs_init() [all …]
|
| /components/dfs/dfs_v2/filesystems/romfs/ |
| A D | dfs_romfs.c | 170 static struct dfs_vnode *dfs_romfs_lookup (struct dfs_dentry *dentry) in dfs_romfs_lookup() argument 176 RT_ASSERT(dentry != RT_NULL); in dfs_romfs_lookup() 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() 275 mnt = file->dentry->mnt; in dfs_romfs_open() 285 dirent = __dfs_romfs_lookup(root_dirent, file->dentry->pathname, &size); in dfs_romfs_open() 298 static int dfs_romfs_stat(struct dfs_dentry *dentry, struct stat *st) in dfs_romfs_stat() argument 304 st->st_mode = dentry->vnode->mode; in dfs_romfs_stat() 305 st->st_size = dentry->vnode->size; in dfs_romfs_stat() [all …]
|
| /components/dfs/dfs_v2/filesystems/tmpfs/ |
| A D | dfs_tmpfs.c | 470 superblock = (struct tmpfs_sb *)dentry->mnt->data; in dfs_tmpfs_stat() 476 st->st_dev = (dev_t)(size_t)(dentry->mnt->dev_id); in dfs_tmpfs_stat() 554 static int dfs_tmpfs_unlink(struct dfs_dentry *dentry) in dfs_tmpfs_unlink() argument 560 superblock = (struct tmpfs_sb *)dentry->mnt->data; in dfs_tmpfs_unlink() 571 if (rt_atomic_load(&(dentry->ref_count)) == 1) in dfs_tmpfs_unlink() 647 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in _dfs_tmpfs_lookup() 652 superblock = (struct tmpfs_sb *)dentry->mnt->data; 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() 697 superblock = (struct tmpfs_sb *)dentry->mnt->data; in dfs_tmpfs_create_vnode() [all …]
|
| /components/dfs/dfs_v2/filesystems/elmfat/ |
| A D | dfs_elm.c | 407 drivers_fn = file->dentry->pathname; in dfs_elm_open() 766 int dfs_elm_unlink(struct dfs_dentry *dentry) in dfs_elm_unlink() argument 776 vol = elm_get_vol((FATFS *)dentry->mnt->data); in dfs_elm_unlink() 837 fat = (FATFS *)dentry->mnt->data; in dfs_elm_stat() 855 drivers_fn = dentry->pathname; in dfs_elm_stat() 887 … st->st_size = (dentry->vnode && dentry->vnode->aspace) ? dentry->vnode->size : file_info.fsize; in dfs_elm_stat() 943 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in dfs_elm_lookup() 948 if (dfs_elm_stat(dentry, &st) != 0) 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 …]
|