Lines Matching refs:path
53 if ((file->vnode->path[0] == '/') && (file->vnode->path[1] == '\0')) in dfs_device_fs_ioctl()
75 if ((file->vnode->path[0] == '/') && (file->vnode->path[1] == '\0')) in dfs_device_fs_read()
96 if ((file->vnode->path[0] == '/') && (file->vnode->path[1] == '\0')) in dfs_device_fs_write()
119 …if (file->vnode->type == FT_DIRECTORY && (file->vnode->path[0] == '/') && (file->vnode->path[1] ==… in dfs_device_fs_close()
159 if ((file->vnode->path[0] == '/') && (file->vnode->path[1] == '\0') && in dfs_device_fs_open()
220 if (rt_device_bus_create(&file->vnode->path[1], 0) == RT_NULL) in dfs_device_fs_open()
227 device = rt_device_find(&file->vnode->path[1]); in dfs_device_fs_open()
268 int dfs_device_fs_unlink(struct dfs_filesystem *fs, const char *path) in dfs_device_fs_unlink() argument
273 dev_id = rt_device_find(&path[1]); in dfs_device_fs_unlink()
287 int dfs_device_fs_stat(struct dfs_filesystem *fs, const char *path, struct stat *st) in dfs_device_fs_stat() argument
289 st->st_dev = (dev_t)((size_t)dfs_filesystem_lookup(fs->path)); in dfs_device_fs_stat()
291 if ((path[0] == '/') && (path[1] == '\0')) in dfs_device_fs_stat()
307 dev_id = rt_device_find(&path[1]); in dfs_device_fs_stat()