Home
last modified time | relevance | path

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

12

/third_party/NuttX/fs/vfs/
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_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_open.c150 struct Vnode *vnode = NULL; in fp_open() local
155 ret = follow_symlink(dirfd, path, &vnode, &fullpath); in fp_open()
159 if (vnode->type == VNODE_TYPE_BCHR) in fp_open()
166 if (vnode->type == VNODE_TYPE_CHR) in fp_open()
168 if (OsDevLimitCheckPermission(vnode->type, fullpath, oflags) != LOS_OK) in fp_open()
177 if (vnode->type == VNODE_TYPE_BLK) in fp_open()
187 if (OsDevLimitCheckPermission(vnode->type, fullpath, oflags) != LOS_OK) in fp_open()
196 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY) && in fp_open()
209 if (vnode->type == VNODE_TYPE_DIR) in fp_open()
216 if (VfsVnodePermissionCheck(vnode, accmode)) in fp_open()
[all …]
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 && vnode->type != VNODE_TYPE_VIR_LNK) in do_readlink()
68 if (vnode->type != VNODE_TYPE_LNK) in do_readlink()
75 if (!vnode->vop || !vnode->vop->Readlink) in do_readlink()
81 ret = vnode->vop->Readlink(vnode, buf, bufsize); in do_readlink()
Dfs_truncate64.c65 struct Vnode *vnode = NULL; in file_truncate64() local
81 vnode = filep->f_vnode; in file_truncate64()
82 if (!vnode || !vnode->vop || !vnode->vop->Truncate64) in file_truncate64()
92 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_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
76 ret = VnodeLookup(fullpath, &vnode, V_DUMMY|V_CREATE); in do_mkdir()
81 vnode->mode = mode | S_IFDIR; in do_mkdir()
82 vnode->type = VNODE_TYPE_DIR; in do_mkdir()
119 ret = parentVnode->vop->Mkdir(parentVnode, dirname, mode, &vnode); in do_mkdir()
131 struct PathCache *dt = PathCacheAlloc(parentVnode, vnode, dirname, strlen(dirname)); in do_mkdir()
136 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/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/typescript/tests/baselines/reference/
DsubclassThisTypeAssignable01.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 …]
DsubclassThisTypeAssignable02.types3 oninit?(vnode: Vnode<Attrs, State>): number;
4 >oninit : ((vnode: Vnode<Attrs, State>) => number) | undefined
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) | undefined
26 >vnode : Vnode<A, this>
28 view(vnode: Vnode<A, this>): number;
[all …]
DsubclassThisTypeAssignable01.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))
DsubclassThisTypeAssignable02.symbols10 oninit?(vnode: Vnode<Attrs, State>): number;
12 >vnode : Symbol(vnode, Decl(tile1.ts, 1, 9))
44 view(this: State, vnode: Vnode<Attrs, State>): number;
48 >vnode : Symbol(vnode, Decl(tile1.ts, 10, 18))
62 oninit?(vnode: Vnode<A, this>): number;
64 >vnode : Symbol(vnode, Decl(tile1.ts, 14, 9))
68 view(vnode: Vnode<A, this>): number;
70 >vnode : Symbol(vnode, Decl(tile1.ts, 15, 6))
DsubclassThisTypeAssignable01.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;
DsubclassThisTypeAssignable02.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;
/third_party/NuttX/fs/vfs/include/
Ddriver.h72 int (*open)(struct Vnode *vnode);
73 int (*close)(struct Vnode *vnode);
74 ssize_t (*read)(struct Vnode *vnode, unsigned char *buffer,
76 ssize_t (*write)(struct Vnode *vnode, const unsigned char *buffer,
78 int (*geometry)(struct Vnode *vnode, struct geometry *geometry);
79 int (*ioctl)(struct Vnode *vnode, int cmd, unsigned long arg);
80 int (*unlink)(struct Vnode *vnode);
293 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/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/
DsubclassThisTypeAssignable01.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;
DsubclassThisTypeAssignable02.ts8 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;

12