/third_party/NuttX/fs/vfs/ |
D | fs_rmdir.c | 54 static int check_target(struct Vnode *vnode, char *name) in check_target() argument 56 if (vnode == NULL) in check_target() 61 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target() 66 if (vnode->type != VNODE_TYPE_DIR) in check_target() 71 if (vnode->useCount > 0) in check_target() 76 if ((vnode->flag & VNODE_FLAG_MOUNT_ORIGIN) in check_target() 77 || (vnode->flag & VNODE_FLAG_MOUNT_NEW)) in check_target() 88 if (ret == OK && (cwdnode == vnode)) in check_target() 108 struct Vnode *vnode = NULL; in do_rmdir() local 138 ret = VnodeLookup(fullpath, &vnode, 0); in do_rmdir() [all …]
|
D | fs_unlink.c | 53 static int check_target(struct Vnode *vnode) in check_target() argument 55 if (vnode->type == VNODE_TYPE_DIR) in check_target() 60 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target() 65 if (vnode->useCount > 0) in check_target() 70 if (VfsVnodePermissionCheck(vnode->parent, (WRITE_OP | EXEC_OP))) in check_target() 89 struct Vnode *vnode = NULL; in do_unlink() local 114 ret = VnodeLookup(fullpath, &vnode, 0); in do_unlink() 120 ret = check_target(vnode); in do_unlink() 127 if (vnode && vnode->vop && vnode->vop->Unlink) in do_unlink() 129 ret = vnode->vop->Unlink(vnode->parent, vnode, name); in do_unlink() [all …]
|
D | fs_open.c | 163 struct Vnode *vnode = NULL; in fp_open() local 168 ret = follow_symlink(dirfd, path, &vnode, &fullpath); in fp_open() 172 if (vnode->type == VNODE_TYPE_BCHR) in fp_open() 179 if (vnode->type == VNODE_TYPE_BLK) in fp_open() 191 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY) && in fp_open() 204 if (vnode->type == VNODE_TYPE_DIR) in fp_open() 211 if (VfsVnodePermissionCheck(vnode, accmode)) in fp_open() 219 if ((ret != OK) && (oflags & O_CREAT) && vnode) in fp_open() 222 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in fp_open() 228 if (VfsVnodePermissionCheck(vnode, (WRITE_OP | EXEC_OP))) in fp_open() [all …]
|
D | fs_truncate64.c | 62 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()
|
D | fs_truncate.c | 61 struct Vnode *vnode = NULL; in file_truncate() local 78 vnode = filep->f_vnode; in file_truncate() 79 if (!vnode || !vnode->vop || !vnode->vop->Truncate) in file_truncate() 89 ret = vnode->vop->Truncate(vnode, length); in file_truncate()
|
D | fs_readlink.c | 37 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()
|
D | fs_statfs.c | 73 struct Vnode *vnode = NULL; in statfs() local 90 ret = VnodeLookup(path, &vnode, 0); in statfs() 96 vnode->useCount++; in statfs() 99 mnt = vnode->originMount; in statfs() 115 vnode->useCount--; in statfs() 124 vnode->useCount--; in statfs()
|
D | fs_mkdir.c | 56 struct Vnode *vnode = NULL; in do_mkdir() local 87 ret = VnodeLookup(fullpath, &vnode, V_DUMMY|V_CREATE); in do_mkdir() 92 vnode->mode = mode | S_IFDIR; in do_mkdir() 93 vnode->type = VNODE_TYPE_DIR; in do_mkdir() 130 ret = parentVnode->vop->Mkdir(parentVnode, dirname, mode, &vnode); in do_mkdir() 142 struct PathCache *dt = PathCacheAlloc(parentVnode, vnode, dirname, strlen(dirname)); in do_mkdir() 147 vnode->filePath = strdup(fullpath); in do_mkdir()
|
D | fs_lseek64.c | 75 struct Vnode *vnode = NULL; in file_seek64() local 80 vnode = filep->f_vnode; in file_seek64() 82 if (vnode == NULL) in file_seek64()
|
D | fs_lseek.c | 75 struct Vnode *vnode; in file_seek() local 79 vnode = filep->f_vnode; in file_seek() 81 if (!vnode) in file_seek()
|
/third_party/NuttX/fs/dirent/ |
D | fs_seekdir.c | 56 struct Vnode *vnode; in seekmountptdir() local 65 vnode = idir->fd_root; in seekmountptdir() 68 if (vnode->vop != NULL && vnode->vop->Rewinddir != NULL) in seekmountptdir() 72 vnode->vop->Rewinddir(vnode, idir); in seekmountptdir() 97 if (!vnode->vop || !vnode->vop->Readdir || in seekmountptdir() 98 vnode->vop->Readdir(vnode, idir) <= 0) in seekmountptdir()
|
D | fs_closedir.c | 71 struct Vnode *vnode = NULL; in closedir() local 87 vnode = idir->fd_root; in closedir() 89 if (vnode->vop && vnode->vop->Closedir) in closedir() 91 ret = vnode->vop->Closedir(vnode, idir); in closedir() 103 vnode->useCount--; in closedir()
|
/third_party/typescript/tests/baselines/reference/ |
D | subclassThisTypeAssignable.types | 3 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 …]
|
D | subclassThisTypeAssignable.symbols | 7 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))
|
D | subclassThisTypeAssignable.js | 5 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;
|
D | subclassThisTypeAssignable.errors.txt | 6 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/ |
D | bchdev_driver.c | 70 static int bch_unlink(struct Vnode *vnode); 101 struct Vnode *vnode = filep->f_vnode; in bch_open() local 105 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_open() 132 struct Vnode *vnode = filep->f_vnode; in bch_close() local 136 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_close() 191 struct Vnode *vnode = filep->f_vnode; in bch_seek() local 196 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_seek() 255 struct Vnode *vnode = filep->f_vnode; in bch_read() local 259 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_read() 278 struct Vnode *vnode = filep->f_vnode; in bch_write() local [all …]
|
D | bchlib_setup.c | 82 ret = open_blockdriver(blkdev, readonly ? MS_RDONLY : 0, &bch->vnode); in bchlib_setup() 89 struct drv_data *drv = (struct drv_data *)bch->vnode->data; in bchlib_setup() 92 DEBUGASSERT(bch->vnode && bops && bops->geometry); in bchlib_setup() 94 ret = bops->geometry(bch->vnode, &geo); in bchlib_setup() 125 part = los_part_find(bch->vnode); in bchlib_setup()
|
/third_party/NuttX/fs/vfs/include/ |
D | driver.h | 69 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/ |
D | fs_registerdriver.c | 79 struct Vnode *vnode = NULL; in register_driver() local 88 ret = VnodeLookup(path, &vnode, 0); in register_driver() 105 ret = VnodeLookup(path, &vnode, V_CREATE | V_DUMMY); in register_driver() 111 vnode->type = VNODE_TYPE_CHR; in register_driver() 112 vnode->data = data; in register_driver() 113 vnode->mode = mode; in register_driver() 114 vnode->fop = (struct file_operations_vfs *)fops; in register_driver()
|
D | fs_unregisterdriver.c | 60 struct Vnode *vnode = NULL; in unregister_driver() local 67 ret = VnodeLookup(path, &vnode, V_DUMMY); in unregister_driver() 73 if (vnode->type != VNODE_TYPE_CHR && vnode->type != VNODE_TYPE_BLK) in unregister_driver() 78 ret = VnodeFree(vnode); in unregister_driver()
|
D | fs_blockproxy.c | 170 struct Vnode *vnode = NULL; in block_proxy() local 221 vnode = filep->f_vnode; in block_proxy() 223 vnode->type = VNODE_TYPE_BCHR; in block_proxy()
|
/third_party/NuttX/drivers/pipes/ |
D | pipe_common.c | 187 struct Vnode *vnode = filep->f_vnode; in pipecommon_open() local 188 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipecommon_open() 213 if (vnode->useCount == 1 && dev->d_buffer == NULL) in pipecommon_open() 285 vnode->useCount++; in pipecommon_open() 296 struct Vnode *vnode = filep->f_vnode; in pipecommon_close() local 297 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipecommon_close() 318 if (vnode->useCount > 1) in pipecommon_close() 382 vnode->useCount--; in pipecommon_close() 394 struct Vnode *vnode = filep->f_vnode; in pipecommon_read() local 395 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipecommon_read() [all …]
|
D | pipe.c | 148 struct Vnode *vnode = filep->f_vnode; in pipe_close() local 149 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipe_close() 160 if (ret == 0 && vnode->useCount <= 1) in pipe_close() 175 int pipe_unlink(struct Vnode *vnode) in pipe_unlink() argument 177 struct pipe_dev_s *dev = ((struct drv_data *)vnode->data)->priv; in pipe_unlink() 186 ret = pipecommon_unlink(vnode); in pipe_unlink() 229 struct Vnode *vnode = NULL; in UpdateDev() local 234 ret = VnodeLookup(dev->name, &vnode, 0); in UpdateDev() 241 data = (struct drv_data *)vnode->data; in UpdateDev()
|
/third_party/typescript/tests/cases/compiler/ |
D | subclassThisTypeAssignable.ts | 6 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;
|