Home
last modified time | relevance | path

Searched refs:vnode (Results 1 – 25 of 62) sorted by relevance

123

/third_party/NuttX/fs/vfs/
Dfs_rmdir.c39 static int check_target(struct Vnode *vnode, char *name) in check_target() argument
41 if (vnode == NULL) in check_target()
46 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target()
51 if (vnode->type != VNODE_TYPE_DIR) in check_target()
56 if (vnode->useCount > 0) in check_target()
61 if ((vnode->flag & VNODE_FLAG_MOUNT_ORIGIN) in check_target()
62 || (vnode->flag & VNODE_FLAG_MOUNT_NEW)) in check_target()
73 if (ret == OK && (cwdnode == vnode)) in check_target()
93 struct Vnode *vnode = NULL; in do_rmdir() local
123 ret = VnodeLookup(fullpath, &vnode, 0); in do_rmdir()
[all …]
Dfs_unlink.c38 static int check_target(struct Vnode *vnode) in check_target() argument
40 if (vnode->type == VNODE_TYPE_DIR) in check_target()
45 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target()
50 if (vnode->useCount > 0) in check_target()
55 if (VfsVnodePermissionCheck(vnode->parent, (WRITE_OP | EXEC_OP))) in check_target()
74 struct Vnode *vnode = NULL; in do_unlink() local
99 ret = VnodeLookup(fullpath, &vnode, 0); in do_unlink()
105 ret = check_target(vnode); in do_unlink()
112 if (vnode && vnode->vop && vnode->vop->Unlink) in do_unlink()
114 ret = vnode->vop->Unlink(vnode->parent, vnode, name); in do_unlink()
[all …]
Dfs_open.c147 struct Vnode *vnode = NULL; in fp_open() local
152 ret = follow_symlink(dirfd, path, &vnode, &fullpath); in fp_open()
156 if (vnode->type == VNODE_TYPE_BCHR) in fp_open()
163 if (vnode->type == VNODE_TYPE_BLK) in fp_open()
175 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY) && in fp_open()
188 if (vnode->type == VNODE_TYPE_DIR) in fp_open()
195 if (VfsVnodePermissionCheck(vnode, accmode)) in fp_open()
203 if ((ret != OK) && (oflags & O_CREAT) && vnode) in fp_open()
206 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in fp_open()
212 if (VfsVnodePermissionCheck(vnode, (WRITE_OP | EXEC_OP))) in fp_open()
[all …]
Dfs_truncate64.c62 struct Vnode *vnode = NULL; in file_truncate64() local
78 vnode = filep->f_vnode; in file_truncate64()
79 if (!vnode || !vnode->vop || !vnode->vop->Truncate64) in file_truncate64()
89 err = vnode->vop->Truncate64(vnode, length); in file_truncate64()
Dfs_truncate.c46 struct Vnode *vnode = NULL; in file_truncate() local
63 vnode = filep->f_vnode; in file_truncate()
64 if (!vnode || !vnode->vop || !vnode->vop->Truncate) in file_truncate()
74 ret = vnode->vop->Truncate(vnode, length); in file_truncate()
Dfs_readlink.c37 struct Vnode *vnode = NULL; in do_readlink() local
60 ret = VnodeLookup(fullpath, &vnode, 0); in do_readlink()
66 if (vnode->type != VNODE_TYPE_LNK) in do_readlink()
72 if (!vnode->vop || !vnode->vop->Readlink) in do_readlink()
78 ret = vnode->vop->Readlink(vnode, buf, bufsize); in do_readlink()
Dfs_statfs.c58 struct Vnode *vnode = NULL; in statfs() local
75 ret = VnodeLookup(path, &vnode, 0); in statfs()
81 vnode->useCount++; in statfs()
84 mnt = vnode->originMount; in statfs()
100 vnode->useCount--; in statfs()
109 vnode->useCount--; in statfs()
Dfs_mkdir.c41 struct Vnode *vnode = NULL; in do_mkdir() local
72 ret = VnodeLookup(fullpath, &vnode, V_DUMMY|V_CREATE); in do_mkdir()
77 vnode->mode = mode | S_IFDIR; in do_mkdir()
78 vnode->type = VNODE_TYPE_DIR; in do_mkdir()
115 ret = parentVnode->vop->Mkdir(parentVnode, dirname, mode, &vnode); in do_mkdir()
127 struct PathCache *dt = PathCacheAlloc(parentVnode, vnode, dirname, strlen(dirname)); in do_mkdir()
132 vnode->filePath = strdup(fullpath); in do_mkdir()
/third_party/NuttX/fs/dirent/
Dfs_seekdir.c41 struct Vnode *vnode; in seekmountptdir() local
50 vnode = idir->fd_root; in seekmountptdir()
53 if (vnode->vop != NULL && vnode->vop->Rewinddir != NULL) in seekmountptdir()
57 vnode->vop->Rewinddir(vnode, idir); in seekmountptdir()
82 if (!vnode->vop || !vnode->vop->Readdir || in seekmountptdir()
83 vnode->vop->Readdir(vnode, idir) <= 0) in seekmountptdir()
Dfs_closedir.c56 struct Vnode *vnode = NULL; in closedir() local
72 vnode = idir->fd_root; in closedir()
74 if (vnode->vop && vnode->vop->Closedir) in closedir()
76 ret = vnode->vop->Closedir(vnode, idir); in closedir()
88 vnode->useCount--; in closedir()
/third_party/typescript/tests/baselines/reference/
DsubclassThisTypeAssignable.types3 oninit?(vnode: Vnode<Attrs, State>): number;
4 >oninit : (vnode: Vnode<Attrs, State>) => number
5 >vnode : Vnode<Attrs, State>
17 view(this: State, vnode: Vnode<Attrs, State>): number;
18 >view : (this: State, vnode: Vnode<Attrs, State>) => number
20 >vnode : Vnode<Attrs, State>
24 oninit?(vnode: Vnode<A, this>): number;
25 >oninit : (vnode: Vnode<A, this>) => number
26 >vnode : Vnode<A, this>
28 view(vnode: Vnode<A, this>): number;
[all …]
DsubclassThisTypeAssignable.symbols7 oninit?(vnode: Vnode<Attrs, State>): number;
9 >vnode : Symbol(vnode, Decl(tile1.ts, 1, 9))
41 view(this: State, vnode: Vnode<Attrs, State>): number;
45 >vnode : Symbol(vnode, Decl(tile1.ts, 10, 18))
59 oninit?(vnode: Vnode<A, this>): number;
61 >vnode : Symbol(vnode, Decl(tile1.ts, 14, 9))
65 view(vnode: Vnode<A, this>): number;
67 >vnode : Symbol(vnode, Decl(tile1.ts, 15, 6))
DsubclassThisTypeAssignable.js5 oninit?(vnode: Vnode<Attrs, State>): number;
14 view(this: State, vnode: Vnode<Attrs, State>): number;
18 oninit?(vnode: Vnode<A, this>): number;
19 view(vnode: Vnode<A, this>): number;
DsubclassThisTypeAssignable.errors.txt6 oninit?(vnode: Vnode<Attrs, State>): number;
17 view(this: State, vnode: Vnode<Attrs, State>): number;
21 oninit?(vnode: Vnode<A, this>): number;
22 view(vnode: Vnode<A, this>): number;
/third_party/NuttX/drivers/bch/
Dbchdev_driver.c55 static int bch_unlink(struct Vnode *vnode);
86 struct Vnode *vnode = filep->f_vnode; in bch_open() local
90 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_open()
117 struct Vnode *vnode = filep->f_vnode; in bch_close() local
121 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_close()
176 struct Vnode *vnode = filep->f_vnode; in bch_seek() local
181 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_seek()
240 struct Vnode *vnode = filep->f_vnode; in bch_read() local
244 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_read()
263 struct Vnode *vnode = filep->f_vnode; in bch_write() local
[all …]
Dbchlib_setup.c67 ret = open_blockdriver(blkdev, readonly ? MS_RDONLY : 0, &bch->vnode); in bchlib_setup()
74 struct drv_data *drv = (struct drv_data *)bch->vnode->data; in bchlib_setup()
77 DEBUGASSERT(bch->vnode && bops && bops->geometry); in bchlib_setup()
79 ret = bops->geometry(bch->vnode, &geo); in bchlib_setup()
110 part = los_part_find(bch->vnode); in bchlib_setup()
/third_party/NuttX/fs/vfs/include/
Ddriver.h69 int (*open)(struct Vnode *vnode);
70 int (*close)(struct Vnode *vnode);
71 ssize_t (*read)(struct Vnode *vnode, unsigned char *buffer,
73 ssize_t (*write)(struct Vnode *vnode, const unsigned char *buffer,
75 int (*geometry)(struct Vnode *vnode, struct geometry *geometry);
76 int (*ioctl)(struct Vnode *vnode, int cmd, unsigned long arg);
77 int (*unlink)(struct Vnode *vnode);
290 int close_blockdriver(struct Vnode *vnode);
/third_party/NuttX/fs/driver/
Dfs_registerdriver.c64 struct Vnode *vnode = NULL; in register_driver() local
73 ret = VnodeLookup(path, &vnode, 0); in register_driver()
90 ret = VnodeLookup(path, &vnode, V_CREATE | V_DUMMY); in register_driver()
96 vnode->type = VNODE_TYPE_CHR; in register_driver()
97 vnode->data = data; in register_driver()
98 vnode->mode = mode; in register_driver()
99 vnode->fop = (struct file_operations_vfs *)fops; in register_driver()
Dfs_unregisterdriver.c45 struct Vnode *vnode = NULL; in unregister_driver() local
52 ret = VnodeLookup(path, &vnode, V_DUMMY); in unregister_driver()
58 if (vnode->type != VNODE_TYPE_CHR && vnode->type != VNODE_TYPE_BLK) in unregister_driver()
63 ret = VnodeFree(vnode); in unregister_driver()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Ditem_tuple_or_list_eliminate.h69 void Visit(const ValueNodePtr &vnode) override { in Visit() argument
70 if (sequeue_ != nullptr && IsValueNode<Int64Imm>(vnode)) { in Visit()
71 auto idx = GetValue<int64_t>(vnode->value()); in Visit()
118 void Visit(const ValueNodePtr &vnode) override { in Visit() argument
119 if (tuple_ != nullptr && IsValueNode<Int64Imm>(vnode)) { in Visit()
120 auto idx = GetValue<int64_t>(vnode->value()); in Visit()
163 void Visit(const ValueNodePtr &vnode) override { in Visit() argument
164 if (IsValueNode<ValueTuple>(vnode)) { in Visit()
165 tuple_ = GetValueNode<ValueTuplePtr>(vnode); in Visit()
166 has_new_value_ = vnode->has_new_value(); in Visit()
[all …]
Dgradient_eliminate.cc24 AnfNodePtr ExpandJPrimitive(const ValueNodePtr &vnode, const pipeline::ResourceBasePtr &resource) { in ExpandJPrimitive() argument
25 ScopeGuard scope_guard(vnode->scope()); in ExpandJPrimitive()
26 auto newg = ad::Kprim(vnode, resource); in ExpandJPrimitive()
31 auto prim = GetValueNode<PrimitivePtr>(vnode); in ExpandJPrimitive()
86 AnfNodePtr ExpandJ(const ValueNodePtr &vnode, const pipeline::ResourceBasePtr &resource) { in ExpandJ() argument
87 if (IsValueNode<FuncGraph>(vnode)) { in ExpandJ()
88 ScopeGuard scope_guard(vnode->scope()); in ExpandJ()
89 auto func_graph = GetValueNode<FuncGraphPtr>(vnode); in ExpandJ()
98 if (IsValueNode<Primitive>(vnode)) { in ExpandJ()
99 return ExpandJPrimitive(vnode, resource); in ExpandJ()
/third_party/NuttX/drivers/pipes/
Dpipe_common.c171 struct Vnode *vnode = filep->f_vnode; in pipecommon_open() local
172 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipecommon_open()
197 if (vnode->useCount == 1 && dev->d_buffer == NULL) in pipecommon_open()
269 vnode->useCount++; in pipecommon_open()
280 struct Vnode *vnode = filep->f_vnode; in pipecommon_close() local
281 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipecommon_close()
302 if (vnode->useCount > 1) in pipecommon_close()
366 vnode->useCount--; in pipecommon_close()
378 struct Vnode *vnode = filep->f_vnode; in pipecommon_read() local
379 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipecommon_read()
[all …]
Dpipe.c133 struct Vnode *vnode = filep->f_vnode; in pipe_close() local
134 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipe_close()
145 if (ret == 0 && vnode->useCount <= 1) in pipe_close()
160 int pipe_unlink(struct Vnode *vnode) in pipe_unlink() argument
162 struct pipe_dev_s *dev = ((struct drv_data *)vnode->data)->priv; in pipe_unlink()
171 ret = pipecommon_unlink(vnode); in pipe_unlink()
214 struct Vnode *vnode = NULL; in UpdateDev() local
219 ret = VnodeLookup(dev->name, &vnode, 0); in UpdateDev()
226 data = (struct drv_data *)vnode->data; in UpdateDev()
/third_party/typescript/tests/cases/compiler/
DsubclassThisTypeAssignable.ts6 oninit?(vnode: Vnode<Attrs, State>): number;
15 view(this: State, vnode: Vnode<Attrs, State>): number;
19 oninit?(vnode: Vnode<A, this>): number;
20 view(vnode: Vnode<A, this>): number;
/third_party/mindspore/mindspore/core/ir/
Dgraph_utils_extends.cc100 void Visit(const ValueNodePtr &vnode) override { in Visit() argument
101 if (!IsValueNode<FuncGraph>(vnode)) { in Visit()
105 auto graph = GetValueNode<FuncGraphPtr>(vnode); in Visit()
136 void Visit(const ValueNodePtr &vnode) override { in Visit() argument
137 if (!IsValueNode<FuncGraph>(vnode)) { in Visit()
141 auto graph = GetValueNode<FuncGraphPtr>(vnode); in Visit()

123