| /netbsd-src/sys/fs/adosfs/ |
| H A D | adlookup.c | 74 struct vnode **vpp; /* place to store result */ in adosfs_lookup() local 88 vpp = sp->a_vpp; in adosfs_lookup() 89 *vpp = NULL; in adosfs_lookup() 114 cnp->cn_nameiop, cnp->cn_flags, NULL, vpp)) { in adosfs_lookup() 115 return *vpp == NULLVP ? ENOENT : 0; in adosfs_lookup() 123 *vpp = vdp; in adosfs_lookup() 149 LK_EXCLUSIVE, vpp); in adosfs_lookup() 152 *vpp = NULL; in adosfs_lookup() 168 LK_EXCLUSIVE, vpp)) != 0) { in adosfs_lookup() 174 ap = VTOA(*vpp); in adosfs_lookup() [all …]
|
| /netbsd-src/common/lib/libc/gen/ |
| H A D | radixtree.c | 508 void **vpp; in radix_tree_lookup_ptr() local 517 vpp = &t->t_root; in radix_tree_lookup_ptr() 520 refs->pptr = vpp; in radix_tree_lookup_ptr() 531 KASSERT(vpp == &t->t_root); in radix_tree_lookup_ptr() 550 entry = *vpp; in radix_tree_lookup_ptr() 565 *vpp = c; in radix_tree_lookup_ptr() 568 vpp = &n->n_ptrs[i]; in radix_tree_lookup_ptr() 571 refs->pptr = vpp; in radix_tree_lookup_ptr() 576 KASSERT(*vpp == NULL); in radix_tree_lookup_ptr() 581 return vpp; in radix_tree_lookup_ptr() [all …]
|
| /netbsd-src/sys/miscfs/genfs/ |
| H A D | layer_vfsops.c | 128 layerfs_root(struct mount *mp, int lktype, struct vnode **vpp) in layerfs_root() argument 134 *vpp = NULL; in layerfs_root() 142 *vpp = vp; in layerfs_root() 243 layerfs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in layerfs_vget() argument 254 *vpp = NULL; in layerfs_vget() 258 error = layer_node_create(mp, vp, vpp); in layerfs_vget() 261 *vpp = NULL; in layerfs_vget() 264 error = vn_lock(*vpp, lktype); in layerfs_vget() 266 vrele(*vpp); in layerfs_vget() 267 *vpp = NULL; in layerfs_vget() [all …]
|
| /netbsd-src/sys/fs/puffs/ |
| H A D | puffs_node.c | 58 voff_t vsize, dev_t rdev, bool may_exist, struct vnode **vpp) in puffs_getvnode1() argument 101 *vpp = vp; in puffs_getvnode1() 136 voff_t vsize, dev_t rdev, struct vnode **vpp) in puffs_getvnode() argument 139 return puffs_getvnode1(mp, ck, type, vsize, rdev, true, vpp); in puffs_getvnode() 144 puffs_newnode(struct mount *mp, struct vnode *dvp, struct vnode **vpp, in puffs_newnode() argument 168 error = puffs_getvnode1(dvp->v_mount, ck, type, 0, rdev, false, vpp); in puffs_newnode() 179 cache_enter(dvp, *vpp, cnp->cn_nameptr, cnp->cn_namelen, in puffs_newnode() 246 struct vnode **vpp) in puffs_cookie2vnode() argument 257 *vpp = pmp->pmp_root; in puffs_cookie2vnode() 261 rv = vcache_get(PMPTOMP(pmp), &ck, sizeof(ck), vpp); in puffs_cookie2vnode() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | zfs_ctldir.c | 123 uint64_t id, struct vnode **vpp) in sfs_vnode_get() argument 130 err = vfs_hash_get(mp, (u_int)id, flags, curthread, vpp, in sfs_vnode_get() 137 uint64_t id, struct vnode **vpp) in sfs_vnode_insert() argument 142 err = vfs_hash_insert(vp, (u_int)id, flags, curthread, vpp, in sfs_vnode_insert() 159 struct vnode **vpp) in sfs_vgetx() argument 164 error = sfs_vnode_get(mp, flags, parent_id, id, vpp); in sfs_vgetx() 165 if (error != 0 || *vpp != NULL) { in sfs_vgetx() 166 KASSERT_IMPLY(error == 0, (*vpp)->v_data != NULL, in sfs_vgetx() 174 *vpp = NULL; in sfs_vgetx() 184 *vpp = NULL; in sfs_vgetx() [all …]
|
| /netbsd-src/sys/ufs/ufs/ |
| H A D | ufs_vfsops.c | 89 ufs_root(struct mount *mp, int lktype, struct vnode **vpp) in ufs_root() argument 96 *vpp = nvp; in ufs_root() 104 ufs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in ufs_vget() argument 108 error = vcache_get(mp, &ino, sizeof(ino), vpp); in ufs_vget() 111 error = vn_lock(*vpp, lktype); in ufs_vget() 113 vrele(*vpp); in ufs_vget() 114 *vpp = NULL; in ufs_vget() 236 ufs_fhtovp(struct mount *mp, struct ufid *ufhp, int lktype, struct vnode **vpp) in ufs_fhtovp() argument 245 *vpp = NULLVP; in ufs_fhtovp() 253 *vpp = NULLVP; in ufs_fhtovp() [all …]
|
| /netbsd-src/sys/coda/ |
| H A D | coda_vfsops.c | 352 coda_root(struct mount *vfsp, int lktype, struct vnode **vpp) in coda_root() argument 366 *vpp = mi->mi_rootvp; in coda_root() 368 vref(*vpp); in coda_root() 369 vn_lock(*vpp, lktype); in coda_root() 392 *vpp = mi->mi_rootvp; in coda_root() 393 vref(*vpp); in coda_root() 394 vn_lock(*vpp, lktype); in coda_root() 407 *vpp = mi->mi_rootvp; in coda_root() 408 vref(*vpp); in coda_root() 409 vn_lock(*vpp, lktype); in coda_root() [all …]
|
| H A D | coda_vnops.c | 883 vnode_t **vpp = ap->a_vpp; in coda_lookup() local 912 *vpp = coda_ctlvp; in coda_lookup() 913 vref(*vpp); in coda_lookup() 923 *vpp = (vnode_t *)0; in coda_lookup() 935 *vpp = CTOV(cp); in coda_lookup() 936 vref(*vpp); in coda_lookup() 938 myprintf(("lookup result %d vpp %p\n",error,*vpp));) in coda_lookup() 948 *vpp = (vnode_t *)0; in coda_lookup() 955 *vpp = CTOV(cp); in coda_lookup() 964 coda_nc_enter(VTOC(dvp), nm, len, cred, VTOC(*vpp)); in coda_lookup() [all …]
|
| /netbsd-src/sys/fs/filecorefs/ |
| H A D | filecore_lookup.c | 135 struct vnode **vpp = ap->a_vpp; in filecore_lookup() local 145 *vpp = NULL; in filecore_lookup() 167 cnp->cn_nameiop, cnp->cn_flags, NULL, vpp)) { in filecore_lookup() 168 return *vpp == NULLVP ? ENOENT : 0; in filecore_lookup() 244 cache_enter(vdp, *vpp, cnp->cn_nameptr, cnp->cn_namelen, in filecore_lookup() 262 *vpp = vdp; in filecore_lookup() 275 error = vcache_get(vdp->v_mount, &ino, sizeof(ino), vpp); in filecore_lookup() 283 cache_enter(vdp, *vpp, cnp->cn_nameptr, cnp->cn_namelen, in filecore_lookup()
|
| H A D | filecore_vfsops.c | 465 filecore_root(struct mount *mp, int lktype, struct vnode **vpp) in filecore_root() argument 472 *vpp = nvp; in filecore_root() 525 struct vnode **vpp) in filecore_fhtovp() argument 537 *vpp = NULLVP; in filecore_fhtovp() 543 *vpp = NULLVP; in filecore_fhtovp() 546 *vpp = nvp; in filecore_fhtovp() 559 filecore_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in filecore_vget() argument 563 error = vcache_get(mp, &ino, sizeof(ino), vpp); in filecore_vget() 566 error = vn_lock(*vpp, lktype); in filecore_vget() 568 vrele(*vpp); in filecore_vget() [all …]
|
| /netbsd-src/sys/fs/union/ |
| H A D | union_subr.c | 356 struct vnode **vpp, in union_allocvp() argument 464 *vpp = UNIONTOV(un); in union_allocvp() 466 VOP_UNLOCK(*vpp); in union_allocvp() 520 error = vcache_get(mp, &un, sizeof(un), vpp); in union_allocvp() 521 KASSERT(error != 0 || UNIONTOV(un) == *vpp); in union_allocvp() 810 struct componentname *cnp, struct vnode **vpp) in union_mkshadow() argument 845 KASSERT(*vpp == NULL); in union_mkshadow() 846 error = VOP_MKDIR(dvp, vpp, &cn, &va); in union_mkshadow() 888 union_vn_create(struct vnode **vpp, struct union_node *un, struct lwp *l) in union_vn_create() argument 899 *vpp = NULLVP; in union_vn_create() [all …]
|
| /netbsd-src/sys/fs/tmpfs/ |
| H A D | tmpfs_vfsops.c | 303 tmpfs_root(struct mount *mp, int lktype, vnode_t **vpp) in tmpfs_root() argument 308 error = vcache_get(mp, &node, sizeof(node), vpp); in tmpfs_root() 311 error = vn_lock(*vpp, lktype); in tmpfs_root() 313 vrele(*vpp); in tmpfs_root() 314 *vpp = NULL; in tmpfs_root() 322 tmpfs_vget(struct mount *mp, ino_t ino, int lktype, vnode_t **vpp) in tmpfs_vget() argument 329 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int lktype, vnode_t **vpp) in tmpfs_fhtovp() argument 354 error = vcache_get(mp, &node, sizeof(node), vpp); in tmpfs_fhtovp() 362 error = vn_lock(*vpp, lktype); in tmpfs_fhtovp() 364 vrele(*vpp); in tmpfs_fhtovp() [all …]
|
| /netbsd-src/sys/ufs/lfs/ |
| H A D | lfs_vnops.c | 312 struct vnode **vpp, struct componentname *cnp) in lfs_makeinode() argument 327 *vpp = tvp; in lfs_makeinode() 359 *vpp = tvp; in lfs_makeinode() 360 cache_enter(dvp, *vpp, cnp->cn_nameptr, cnp->cn_namelen, cnp->cn_flags); in lfs_makeinode() 361 KASSERT(VOP_ISLOCKED(*vpp) == LK_EXCLUSIVE); in lfs_makeinode() 654 struct vnode *dvp, **vpp; in lfs_symlink() local 661 vpp = ap->a_vpp; in lfs_symlink() 664 KASSERT(vpp != NULL); in lfs_symlink() 665 KASSERT(*vpp == NULL); in lfs_symlink() 682 error = lfs_makeinode(ap->a_vap, dvp, ulr, vpp, ap->a_cnp); in lfs_symlink() [all …]
|
| H A D | ulfs_vfsops.c | 88 ulfs_root(struct mount *mp, int lktype, struct vnode **vpp) in ulfs_root() argument 95 *vpp = nvp; in ulfs_root() 216 struct vnode **vpp) in ulfs_fhtovp() argument 225 *vpp = NULLVP; in ulfs_fhtovp() 232 *vpp = NULLVP; in ulfs_fhtovp() 235 *vpp = nvp; in ulfs_fhtovp()
|
| /netbsd-src/sys/fs/ptyfs/ |
| H A D | ptyfs_vfsops.c | 192 ptyfs__allocvp(struct mount *mp, struct lwp *l, struct vnode **vpp, in ptyfs__allocvp() argument 209 error = ptyfs_allocvp(mp, vpp, type, minor(dev)); in ptyfs__allocvp() 212 error = vn_lock(*vpp, LK_EXCLUSIVE); in ptyfs__allocvp() 214 vrele(*vpp); in ptyfs__allocvp() 215 *vpp = NULL; in ptyfs__allocvp() 389 ptyfs_root(struct mount *mp, int lktype, struct vnode **vpp) in ptyfs_root() argument 394 error = ptyfs_allocvp(mp, vpp, PTYFSroot, 0); in ptyfs_root() 397 error = vn_lock(*vpp, lktype); in ptyfs_root() 399 vrele(*vpp); in ptyfs_root() 400 *vpp = NULL; in ptyfs_root() [all …]
|
| /netbsd-src/sys/nfs/ |
| H A D | nfs_srvsubs.c | 295 nfsrv_fhtovp(nfsrvfh_t *nsfh, int lockflag, struct vnode **vpp, in nfsrv_fhtovp() argument 306 *vpp = (struct vnode *)0; in nfsrv_fhtovp() 319 error = VFS_FHTOVP(mp, &fhp->fh_fid, LK_EXCLUSIVE, vpp); in nfsrv_fhtovp() 327 vput(*vpp); in nfsrv_fhtovp() 332 vput(*vpp); in nfsrv_fhtovp() 341 vput(*vpp); in nfsrv_fhtovp() 345 vput(*vpp); in nfsrv_fhtovp() 365 VOP_UNLOCK(*vpp); in nfsrv_fhtovp()
|
| /netbsd-src/sys/fs/nilfs/ |
| H A D | nilfs_vnops.c | 329 struct vnode **vpp = ap->a_vpp; /* return node */ in nilfs_trivial_bmap() local 355 if (vpp) in nilfs_trivial_bmap() 356 *vpp = vp; in nilfs_trivial_bmap() 616 struct vnode **vpp = ap->a_vpp; in nilfs_lookup() local 625 *vpp = NULL; in nilfs_lookup() 652 cnp->cn_nameiop, cnp->cn_flags, NULL, vpp)) { in nilfs_lookup() 653 return *vpp == NULLVP ? ENOENT : 0; in nilfs_lookup() 669 *vpp = dvp; in nilfs_lookup() 688 error = vcache_get(mp, &ino, sizeof(ino), vpp); in nilfs_lookup() 725 error = vcache_get(mp, &ino, sizeof(ino), vpp); in nilfs_lookup() [all …]
|
| /netbsd-src/sys/rump/librump/rumpvfs/ |
| H A D | rumpvnode_if.c | 83 struct vnode **vpp, in RUMP_VOP_LOOKUP() argument 89 error = VOP_LOOKUP(dvp, vpp, cnp); in RUMP_VOP_LOOKUP() 97 struct vnode **vpp, in RUMP_VOP_CREATE() argument 104 error = VOP_CREATE(dvp, vpp, cnp, vap); in RUMP_VOP_CREATE() 112 struct vnode **vpp, in RUMP_VOP_MKNOD() argument 119 error = VOP_MKNOD(dvp, vpp, cnp, vap); in RUMP_VOP_MKNOD() 430 struct vnode **vpp, in RUMP_VOP_MKDIR() argument 437 error = VOP_MKDIR(dvp, vpp, cnp, vap); in RUMP_VOP_MKDIR() 459 struct vnode **vpp, in RUMP_VOP_SYMLINK() argument 467 error = VOP_SYMLINK(dvp, vpp, cnp, vap, target); in RUMP_VOP_SYMLINK() [all …]
|
| H A D | rump_vfs.c | 242 struct vnode **dvpp, struct vnode **vpp, struct componentname **cnpp) in rump_namei() argument 266 if (vpp) { in rump_namei() 267 *vpp = nd.ni_vp; in rump_namei() 415 rump_vfs_root(struct mount *mp, struct vnode **vpp, int lock) in rump_vfs_root() argument 419 rv = VFS_ROOT(mp, LK_EXCLUSIVE, vpp); in rump_vfs_root() 424 VOP_UNLOCK(*vpp); in rump_vfs_root() 444 rump_vfs_fhtovp(struct mount *mp, struct fid *fid, struct vnode **vpp) in rump_vfs_fhtovp() argument 447 return VFS_FHTOVP(mp, fid, LK_EXCLUSIVE, vpp); in rump_vfs_fhtovp()
|
| /netbsd-src/sys/fs/cd9660/ |
| H A D | cd9660_lookup.c | 120 struct vnode **vpp = ap->a_vpp; in cd9660_lookup() local 129 *vpp = NULL; in cd9660_lookup() 152 cnp->cn_nameiop, cnp->cn_flags, NULL, vpp)) { in cd9660_lookup() 153 return *vpp == NULLVP ? ENOENT : 0; in cd9660_lookup() 341 cache_enter(vdp, *vpp, cnp->cn_nameptr, cnp->cn_namelen, cnp->cn_flags); in cd9660_lookup() 359 *vpp = vdp; in cd9660_lookup() 365 *vpp = tdp; in cd9660_lookup() 371 cache_enter(vdp, *vpp, cnp->cn_nameptr, cnp->cn_namelen, cnp->cn_flags); in cd9660_lookup()
|
| /netbsd-src/sys/fs/efs/ |
| H A D | efs_vfsops.c | 298 efs_root(struct mount *mp, int lktype, struct vnode **vpp) in efs_root() argument 306 *vpp = vp; in efs_root() 346 efs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in efs_vget() argument 350 error = vcache_get(mp, &ino, sizeof(ino), vpp); in efs_vget() 353 error = vn_lock(*vpp, lktype); in efs_vget() 355 vrele(*vpp); in efs_vget() 356 *vpp = NULL; in efs_vget() 455 efs_fhtovp(struct mount *mp, struct fid *fhp, int lktype, struct vnode **vpp) in efs_fhtovp() argument 468 *vpp = NULL; in efs_fhtovp() 475 *vpp = NULL; in efs_fhtovp() [all …]
|
| /netbsd-src/sys/fs/hfs/ |
| H A D | hfs_vfsops.c | 442 hfs_root(struct mount *mp, int lktype, struct vnode **vpp) in hfs_root() argument 453 *vpp = nvp; in hfs_root() 498 hfs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in hfs_vget() argument 502 error = hfs_vget_internal(mp, ino, HFS_DATAFORK, vpp); in hfs_vget() 505 error = vn_lock(*vpp, lktype); in hfs_vget() 507 vrele(*vpp); in hfs_vget() 508 *vpp = NULL; in hfs_vget() 519 struct vnode **vpp) in hfs_vget_internal() argument 527 return vcache_get(mp, &key, sizeof(key), vpp); in hfs_vget_internal() 614 hfs_fhtovp(struct mount *mp, struct fid *fhp, int lktype, struct vnode **vpp) in hfs_fhtovp() argument
|
| /netbsd-src/sys/fs/autofs/ |
| H A D | autofs_vnops.c | 204 struct vnode **vpp = ap->a_vpp; in autofs_lookup() local 215 *vpp = NULLVP; in autofs_lookup() 225 cnp->cn_nameiop, cnp->cn_flags, NULL, vpp); in autofs_lookup() 226 if (cachefound && *vpp == NULLVP) { in autofs_lookup() 247 error = vcache_get(dvp->v_mount, &parent, sizeof(parent), vpp); in autofs_lookup() 255 *vpp = dvp; in autofs_lookup() 271 error = VOP_LOOKUP(newvp, vpp, cnp); in autofs_lookup() 297 error = vcache_get(dvp->v_mount, &child, sizeof(child), vpp); in autofs_lookup() 304 cache_enter(dvp, *vpp, cnp->cn_nameptr, cnp->cn_namelen, in autofs_lookup() 369 struct vnode **vpp in autofs_mkdir() local [all...] |
| /netbsd-src/sys/miscfs/kernfs/ |
| H A D | kernfs_vfsops.c | 185 kernfs_root(struct mount *mp, int lktype, struct vnode **vpp) in kernfs_root() argument 191 error = vcache_get(mp, &root_target, sizeof(root_target), vpp); in kernfs_root() 194 error = vn_lock(*vpp, lktype); in kernfs_root() 196 vrele(*vpp); in kernfs_root() 197 *vpp = NULL; in kernfs_root() 218 struct vnode **vpp) in kernfs_vget() argument
|
| /netbsd-src/sys/ufs/chfs/ |
| H A D | chfs_vnode.c | 69 chfs_readvnode(struct mount *mp, ino_t ino, struct vnode **vpp) in chfs_readvnode() argument 84 KASSERT(vpp != NULL); in chfs_readvnode() 86 if (vpp != NULL) { in chfs_readvnode() 87 vp = *vpp; in chfs_readvnode() 132 *vpp = vp; in chfs_readvnode() 193 chfs_makeinode(int mode, struct vnode *dvp, struct vnode **vpp, in chfs_makeinode() argument 208 *vpp = NULL; in chfs_makeinode() 312 *vpp = vp; in chfs_makeinode() 313 cache_enter(dvp, *vpp, cnp->cn_nameptr, cnp->cn_namelen, cnp->cn_flags); in chfs_makeinode()
|