| /components/dfs/dfs_v2/src/ |
| A D | dfs_dentry.c | 202 rt_free(dentry->pathname); in dfs_dentry_unref() 380 dentry->pathname); in dfs_dentry_full_path() 385 dentry->pathname); in dfs_dentry_full_path() 406 char *pathname = RT_NULL; in dfs_dentry_pathname() local 409 index = strrchr(dentry->pathname, '/'); in dfs_dentry_pathname() 412 int length = index - dentry->pathname; in dfs_dentry_pathname() 416 if (pathname) in dfs_dentry_pathname() 418 if (dentry->pathname[0] == '/') in dfs_dentry_pathname() 421 length, dentry->pathname); in dfs_dentry_pathname() 426 length, dentry->pathname); in dfs_dentry_pathname() [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() 245 return (file && file->dentry) ? file->dentry->pathname : "file-mapper"; in get_name() 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 …("File mapping is not supported, file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in dfs_file_mmap() 687 … mapping support is not enabled, file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in dfs_file_mmap()
|
| A D | dfs_posix.c | 486 int unlink(const char *pathname) in unlink() argument 491 if (pathname == NULL) in unlink() 497 result = dfs_file_lstat(pathname, &stat); in unlink() 505 result = dfs_file_unlink(pathname); in unlink() 862 int rmdir(const char *pathname) in rmdir() argument 868 if (!pathname) in rmdir() 874 dir = opendir(pathname); in rmdir() 900 if (dfs_file_lstat(pathname, &stat) == 0) in rmdir() 909 result = dfs_file_unlink(pathname); in rmdir()
|
| A D | dfs_pcache.c | 551 …rt_list_for_each_entry(aspace, &__pcache.head[dfs_aspace_hash(dentry->mnt, dentry->pathname)], has… in dfs_aspace_hash_lookup() 556 && !strcmp(aspace->pathname, dentry->pathname)) in dfs_aspace_hash_lookup() 581 val = dfs_aspace_hash(aspace->mnt, aspace->pathname); in dfs_aspace_insert() 700 aspace->pathname = rt_strdup(dentry->pathname); in _dfs_aspace_create() 808 if (aspace->pathname) in dfs_aspace_release() 810 rt_free(aspace->pathname); in dfs_aspace_release() 925 … rt_kprintf("file: %s%s pages: %d\n", aspace->fullpath, aspace->pathname, aspace->pages_count); in dfs_pcache_dump()
|
| /components/dfs/dfs_v2/filesystems/procfs/ |
| A D | procfs.c | 48 PROC_DEBUG(" %s %d >> %s ret: %d\n", __func__, __LINE__, file->dentry->pathname, ret); in dfs_procfs_open() 69 PROC_DEBUG(" %s %d >> %s ret: %d\n", __func__, __LINE__, file->dentry->pathname, ret); in dfs_procfs_close() 84 PROC_DEBUG(" %s %d >> %s ret: %d\n", __func__, __LINE__, file->dentry->pathname, ret); in dfs_procfs_read() 99 PROC_DEBUG(" %s %d >> %s ret: %d\n", __func__, __LINE__, file->dentry->pathname, ret); in dfs_procfs_write() 114 PROC_DEBUG(" %s %d >> %s ret: %d\n", __func__, __LINE__, file->dentry->pathname, ret); in dfs_procfs_ioctl() 255 struct proc_dentry *entry = dfs_proc_find(dentry->pathname); in dfs_procfs_readlink() 276 PROC_DEBUG(" %s %d >> %s ret: %d\n", __func__, __LINE__, dentry->pathname, ret); in dfs_procfs_readlink() 283 PROC_DEBUG(" %s %d >> %s ret: %d\n", __func__, __LINE__, dentry->pathname, -1); in dfs_procfs_unlink() 312 PROC_DEBUG(" %s %d >> %s ret: %d\n", __func__, __LINE__, dentry->pathname, ret); in dfs_procfs_stat() 335 struct proc_dentry *entry = dfs_proc_find(dentry->pathname); in dfs_procfs_lookup() [all …]
|
| /components/finsh/ |
| A D | msh_file.c | 161 extern void ls(const char *pathname); in cmd_ls() 328 if (pathname == RT_NULL) in directory_delete_for_msh() 335 dir = opendir(pathname); in directory_delete_for_msh() 340 rt_kprintf("cannot remove '%s'\n", pathname); in directory_delete_for_msh() 380 if (rmdir(pathname) != 0) in directory_delete_for_msh() 383 rt_kprintf("cannot remove '%s'\n", pathname); in directory_delete_for_msh() 387 rt_kprintf("removed directory '%s'\n", pathname); in directory_delete_for_msh() 852 if (pathname == RT_NULL) in directory_setattr() 859 dir = opendir(pathname); in directory_setattr() 864 rt_kprintf("cannot open '%s'\n", pathname); in directory_setattr() [all …]
|
| /components/dfs/dfs_v2/filesystems/mqueue/ |
| A D | dfs_mqueue.c | 119 mq_file = dfs_mqueue_lookup(dentry->pathname + 1, &size); in dfs_mqueue_unlink() 140 mq_file = dfs_mqueue_lookup(dentry->pathname + 1, &size); in dfs_mqueue_create_vnode() 148 strncpy(mq_file->name, dentry->pathname + 1, RT_NAME_MAX - 1); in dfs_mqueue_create_vnode() 154 rt_mq_t mq = rt_mq_create(dentry->pathname + 1, mq_file->msg_size, mq_file->max_msgs, in dfs_mqueue_create_vnode() 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()
|
| /components/legacy/fdt/src/ |
| A D | dtb_get.c | 65 …get_dtb_nodes_list(struct dtb_node *dtb_node_head, struct dtb_node *dtb_node, const char *pathname) in _dtb_node_get_dtb_nodes_list() argument 77 if ((root_off = fdt_path_offset(current_fdt, pathname)) >= 0) in _dtb_node_get_dtb_nodes_list() 79 pathname_sz = strlen(pathname); in _dtb_node_get_dtb_nodes_list() 97 strncpy(paths_buf.cur, pathname, pathname_sz); in _dtb_node_get_dtb_nodes_list() 549 struct dtb_node *dtb_node_get_dtb_node_by_path(struct dtb_node *dtb_node, const char *pathname) in dtb_node_get_dtb_node_by_path() argument 556 if (pathname == NULL || dtb_node == NULL) in dtb_node_get_dtb_node_by_path() 562 if (*pathname == '/') in dtb_node_get_dtb_node_by_path() 564 ++pathname; in dtb_node_get_dtb_node_by_path() 573 pathname_sz = strlen(pathname) + 1; in dtb_node_get_dtb_node_by_path() 579 strncpy(pathname_clone, pathname, pathname_sz); in dtb_node_get_dtb_node_by_path() [all …]
|
| A D | dtb_set.c | 106 size_t dtb_node_set_dtb_property(void *fdt, char *pathname, char *property_name, uint32_t *cells, s… in dtb_node_set_dtb_property() argument 115 node_off = fdt_path_offset(fdt, pathname); in dtb_node_set_dtb_property()
|
| /components/dfs/dfs_v2/filesystems/devfs/ |
| A D | devtmpfs.c | 301 d_file = devtmpfs_file_lookup(superblock, file->dentry->pathname); in devtmpfs_getdents() 359 p_file = devtmpfs_file_lookup(superblock, parent_dentry->pathname); in devtmpfs_symlink() 398 d_file = devtmpfs_file_lookup(superblock, dentry->pathname); in devtmpfs_readlink() 441 d_file = devtmpfs_file_lookup(superblock, dentry->pathname); in devtmpfs_unlink() 470 d_file = devtmpfs_file_lookup(superblock, dentry->pathname); in devtmpfs_setattr() 500 _path_separate(dentry->pathname, parent_path, file_name); in devtmpfs_create_vnode() 572 d_file = devtmpfs_file_lookup(superblock, dentry->pathname); in devtmpfs_lookup() 602 device = rt_device_find(&dentry->pathname[1]); in devtmpfs_lookup() 608 d_file = devtmpfs_file_lookup(superblock, dentry->pathname); in devtmpfs_lookup()
|
| A D | devfs.c | 53 …_snprintf(device_name, DFS_PATH_MAX, "%s%s", de->mnt->fullpath + sizeof("/dev") - 1, de->pathname); in dfs_devfs_open() 188 if ((file->dentry->pathname[0] == '/') && (file->dentry->pathname[1] == '\0')) in dfs_devfs_write() 228 if ((file->dentry->pathname[0] == '/') && (file->dentry->pathname[1] == '\0')) in dfs_devfs_ioctl()
|
| /components/legacy/fdt/docs/ |
| A D | api.md | 55 rt_size_t fdt_set_dtb_property(void *fdt, char *pathname, char *property_name, rt_uint32_t *cells, … 61 |pathname | 节点路径 | 224 struct dtb_node *fdt_get_dtb_node_by_path(struct dtb_node *dtb_node, const char *pathname) 230 |pathname | 查找节点的路径 |
|
| /components/dfs/dfs_v2/filesystems/elmfat/ |
| A D | dfs_elm.c | 405 rt_snprintf(drivers_fn, 256, "%d:%s", vol, file->dentry->pathname); in dfs_elm_open() 407 drivers_fn = file->dentry->pathname; in dfs_elm_open() 447 rt_mutex_init(&file->vnode->lock, file->dentry->pathname, RT_IPC_FLAG_PRIO); in dfs_elm_open() 488 rt_mutex_init(&file->vnode->lock, file->dentry->pathname, RT_IPC_FLAG_PRIO); in dfs_elm_open() 783 rt_snprintf(drivers_fn, 256, "%d:%s", vol, dentry->pathname); in dfs_elm_unlink() 814 drivers_newfn = new_dentry->pathname; in dfs_elm_rename() 816 rt_snprintf(drivers_oldfn, 256, "%d:%s", vol, old_dentry->pathname); in dfs_elm_rename() 820 drivers_oldfn = old_dentry->pathname; in dfs_elm_rename() 821 drivers_newfn = new_dentry->pathname; in dfs_elm_rename() 852 rt_snprintf(drivers_fn, 256, "%d:%s", vol, dentry->pathname); in dfs_elm_stat() [all …]
|
| /components/dfs/dfs_v2/filesystems/tmpfs/ |
| A D | dfs_tmpfs.c | 458 rt_mutex_init(&file->vnode->lock, file->dentry->pathname, RT_IPC_FLAG_PRIO); in dfs_tmpfs_open() 471 d_file = dfs_tmpfs_lookup(superblock, dentry->pathname, &size); in dfs_tmpfs_stat() 563 d_file = dfs_tmpfs_lookup(superblock, dentry->pathname, &size); in dfs_tmpfs_unlink() 600 d_file = dfs_tmpfs_lookup(superblock, new_dentry->pathname, &size); in dfs_tmpfs_rename() 604 d_file = dfs_tmpfs_lookup(superblock, old_dentry->pathname, &size); in dfs_tmpfs_rename() 615 _path_separate(new_dentry->pathname, parent_path, file_name); in dfs_tmpfs_rename() 654 d_file = dfs_tmpfs_lookup(superblock, dentry->pathname, &size); in _dfs_tmpfs_lookup() 710 _path_separate(dentry->pathname, parent_path, file_name); in dfs_tmpfs_create_vnode()
|
| /components/dfs/dfs_v2/include/ |
| A D | dfs_dentry.h | 35 char *pathname; /* the pathname under mounted file sytem */ member
|
| A D | dfs_pcache.h | 71 char *fullpath, *pathname; /* Full path and relative path strings */ member
|
| /components/dfs/dfs_v1/src/ |
| A D | dfs_posix.c | 374 int unlink(const char *pathname) in unlink() argument 378 result = dfs_file_unlink(pathname); in unlink() 682 int rmdir(const char *pathname) in rmdir() argument 686 result = dfs_file_unlink(pathname); in rmdir()
|
| A D | dfs_file.c | 155 int dfs_file_is_open(const char *pathname) in dfs_file_is_open() argument 161 fullpath = dfs_normalize_path(NULL, pathname); in dfs_file_is_open() 785 void ls(const char *pathname) in ls() argument 794 if (pathname == NULL) in ls() 807 path = (char *)pathname; in ls() 853 if (pathname == NULL) in ls()
|
| /components/libc/compilers/common/include/sys/ |
| A D | unistd.h | 40 int unlink(const char *pathname);
|
| /components/dfs/dfs_v1/include/ |
| A D | dfs.h | 84 int fd_is_open(const char *pathname);
|
| A D | dfs_fs.h | 43 int (*unlink) (struct dfs_filesystem *fs, const char *pathname);
|
| A D | dfs_file.h | 85 int dfs_file_is_open(const char *pathname);
|
| /components/dfs/dfs_v2/filesystems/ptyfs/ |
| A D | ptyfs.c | 399 pty_file = ptyfile_lookup(superblock, dentry->pathname); in ptyfs_ops_setattr() 471 pty_file = ptyfile_lookup(superblock, dentry->pathname); in ptyfs_ops_lookup() 510 vnode_path = dentry->pathname; in ptyfs_ops_create_vnode() 568 d_file = ptyfile_lookup(superblock, file->dentry->pathname); in devpty_deffops_getdents()
|
| /components/dfs/dfs_v2/filesystems/romfs/ |
| A D | dfs_romfs.c | 187 dirent = __dfs_romfs_lookup(root_dirent, dentry->pathname, &size); in dfs_romfs_lookup() 285 dirent = __dfs_romfs_lookup(root_dirent, file->dentry->pathname, &size); in dfs_romfs_open()
|
| /components/legacy/fdt/inc/ |
| A D | dtb_node.h | 142 size_t dtb_node_set_dtb_property(void *fdt, char *pathname, char *property_name, uint32_t *cells, s… 154 struct dtb_node *dtb_node_get_dtb_node_by_path(struct dtb_node *dtb_node, const char *pathname);
|