Home
last modified time | relevance | path

Searched refs:lktype (Results 1 – 25 of 39) sorted by relevance

12

/netbsd-src/sys/miscfs/genfs/
H A Dlayer_vfsops.c128 layerfs_root(struct mount *mp, int lktype, struct vnode **vpp) in layerfs_root() argument
141 vn_lock(vp, lktype | LK_RETRY); in layerfs_root()
243 layerfs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in layerfs_vget() argument
250 error = VFS_VGET(mp->mnt_lower, ino, lktype, &vp); in layerfs_vget()
264 error = vn_lock(*vpp, lktype); in layerfs_vget()
274 layerfs_fhtovp(struct mount *mp, struct fid *fidp, int lktype, in layerfs_fhtovp() argument
282 error = VFS_FHTOVP(mp->mnt_lower, fidp, lktype, &vp); in layerfs_fhtovp()
296 error = vn_lock(*vpp, lktype); in layerfs_fhtovp()
/netbsd-src/sys/ufs/ufs/
H A Dufs_vfsops.c89 ufs_root(struct mount *mp, int lktype, struct vnode **vpp) in ufs_root() argument
94 if ((error = VFS_VGET(mp, (ino_t)UFS_ROOTINO, lktype, &nvp)) != 0) in ufs_root()
104 ufs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in ufs_vget() argument
111 error = vn_lock(*vpp, lktype); in ufs_vget()
236 ufs_fhtovp(struct mount *mp, struct ufid *ufhp, int lktype, struct vnode **vpp) in ufs_fhtovp() argument
242 if ((error = VFS_VGET(mp, ufhp->ufid_ino, lktype, &nvp)) != 0) { in ufs_fhtovp()
/netbsd-src/sys/kern/
H A Dvfs_vnode.c783 int lktype; in vput()
797 lktype = LK_NONE; in vput()
799 lktype = VOP_ISLOCKED(vp); in vput()
800 KASSERT(lktype != LK_NONE); in vput()
803 vrelel(vp, 0, lktype);
844 vrelel(vnode_t *vp, int flags, int lktype) in vrelel()
873 if (lktype != LK_NONE) { in vrelel()
875 lktype = LK_NONE; in vrelel()
916 if (lktype != LK_NONE) { in vrelel()
918 lktype in vrelel()
779 int lktype; vput() local
840 vrelel(vnode_t * vp,int flags,int lktype) vrelel() argument
1299 int lktype; vgone() local
[all...]
H A Dvfs_lookup.c929 int error, lktype; in lookup_crossmount()
940 lktype = VOP_ISLOCKED(searchdir); in lookup_crossmount()
944 lktype = LK_NONE; in lookup_crossmount()
1019 lktype = LK_NONE;
1024 if (error == 0 && lktype != LK_NONE) { in lookup_lktype()
1025 vn_lock(searchdir, lktype | LK_RETRY); in lookup_lktype()
1077 int error, lktype; in lookup_once()
1109 lktype = lookup_lktype(searchdir, cnp); in lookup_once()
1110 vn_lock(searchdir, lktype | LK_RETRY); in lookup_once()
1152 lktype in lookup_once()
919 int error, lktype; lookup_crossmount() local
1065 int error, lktype; lookup_once() local
1861 const int lktype = (cnp->cn_flags & LOCKSHARED) != 0 ? namei_oneroot() local
[all...]
/netbsd-src/sys/ufs/lfs/
H A Dulfs_vfsops.c88 ulfs_root(struct mount *mp, int lktype, struct vnode **vpp) in ulfs_root() argument
93 if ((error = VFS_VGET(mp, (ino_t)ULFS_ROOTINO, lktype, &nvp)) != 0) in ulfs_root()
215 ulfs_fhtovp(struct mount *mp, struct ulfs_ufid *ufhp, int lktype, in ulfs_fhtovp() argument
222 if ((error = VFS_VGET(mp, ufhp->ufid_ino, lktype, &nvp)) != 0) { in ulfs_fhtovp()
/netbsd-src/sys/coda/
H A Dcoda_vfsops.c352 coda_root(struct mount *vfsp, int lktype, struct vnode **vpp) in coda_root() argument
369 vn_lock(*vpp, lktype); in coda_root()
394 vn_lock(*vpp, lktype); in coda_root()
409 vn_lock(*vpp, lktype); in coda_root()
481 coda_vget(struct mount *vfsp, ino_t ino, int lktype, in coda_vget() argument
521 kauth_cred_t *creadanonp, int lktype) in coda_fhtovp() argument
/netbsd-src/sys/fs/sysvbfs/
H A Dsysvbfs_vfsops.c244 sysvbfs_root(struct mount *mp, int lktype, struct vnode **vpp) in sysvbfs_root() argument
250 if ((error = VFS_VGET(mp, BFS_ROOT_INODE, lktype, &vp)) != 0) in sysvbfs_root()
367 sysvbfs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in sysvbfs_vget() argument
381 error = vn_lock(vp, lktype); in sysvbfs_vget()
393 sysvbfs_fhtovp(struct mount *mp, struct fid *fid, int lktype, in sysvbfs_fhtovp() argument
/netbsd-src/sys/fs/efs/
H A Defs_vfsops.c298 efs_root(struct mount *mp, int lktype, struct vnode **vpp) in efs_root() argument
303 if ((err = VFS_VGET(mp, EFS_ROOTINO, lktype, &vp))) in efs_root()
346 efs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in efs_vget() argument
353 error = vn_lock(*vpp, lktype); in efs_vget()
455 efs_fhtovp(struct mount *mp, struct fid *fhp, int lktype, struct vnode **vpp) in efs_fhtovp() argument
467 if ((err = VFS_VGET(mp, efp->ef_ino, lktype, &vp))) { in efs_fhtovp()
/netbsd-src/sys/fs/filecorefs/
H A Dfilecore_vfsops.c465 filecore_root(struct mount *mp, int lktype, struct vnode **vpp) in filecore_root() argument
470 if ((error = VFS_VGET(mp, FILECORE_ROOTINO, lktype, &nvp)) != 0) in filecore_root()
524 filecore_fhtovp(struct mount *mp, struct fid *fhp, int lktype, in filecore_fhtovp() argument
536 if ((error = VFS_VGET(mp, ifh.ifid_ino, lktype, &nvp)) != 0) { in filecore_fhtovp()
559 filecore_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in filecore_vget() argument
566 error = vn_lock(*vpp, lktype); in filecore_vget()
/netbsd-src/sys/fs/tmpfs/
H A Dtmpfs_vfsops.c303 tmpfs_root(struct mount *mp, int lktype, vnode_t **vpp) in tmpfs_root() argument
311 error = vn_lock(*vpp, lktype); 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
362 error = vn_lock(*vpp, lktype); in tmpfs_fhtovp()
/netbsd-src/sys/fs/hfs/
H A Dhfs_vfsops.c442 hfs_root(struct mount *mp, int lktype, struct vnode **vpp) in hfs_root() argument
451 if ((error = VFS_VGET(mp, HFS_CNID_ROOT_FOLDER, lktype, &nvp)) != 0) in hfs_root()
498 hfs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in hfs_vget() argument
505 error = vn_lock(*vpp, lktype); in hfs_vget()
614 hfs_fhtovp(struct mount *mp, struct fid *fhp, int lktype, struct vnode **vpp) in hfs_fhtovp() argument
/netbsd-src/sys/miscfs/fdesc/
H A Dfdesc_vfsops.c137 fdesc_root(struct mount *mp, int lktype, struct vnode **vpp) in fdesc_root() argument
146 vn_lock(vp, lktype | LK_RETRY); in fdesc_root()
165 fdesc_vget(struct mount *mp, ino_t ino, int lktype, in fdesc_vget() argument
/netbsd-src/sys/fs/v7fs/
H A Dv7fs_vfsops.c327 v7fs_root(struct mount *mp, int lktype, struct vnode **vpp) in v7fs_root() argument
333 if ((error = VFS_VGET(mp, V7FS_ROOT_INODE, lktype, &vp)) != 0) { in v7fs_root()
488 v7fs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in v7fs_vget() argument
500 error = vn_lock(vp, lktype); in v7fs_vget()
512 v7fs_fhtovp(struct mount *mp, struct fid *fid, int lktype, struct vnode **vpp) in v7fs_fhtovp() argument
/netbsd-src/sys/miscfs/kernfs/
H A Dkernfs_vfsops.c185 kernfs_root(struct mount *mp, int lktype, struct vnode **vpp) in kernfs_root() argument
194 error = vn_lock(*vpp, lktype); in kernfs_root()
217 kernfs_vget(struct mount *mp, ino_t ino, int lktype, in kernfs_vget() argument
/netbsd-src/sys/fs/nfs/server/
H A Dnfs_nfsdsocket.c478 int error = 0, lktype; in nfsrvd_dorpc() local
513 lktype = LK_SHARED; in nfsrvd_dorpc()
515 lktype = LK_EXCLUSIVE; in nfsrvd_dorpc()
517 nfsd_fhtovp(nd, &nfs_pubfh, lktype, &vp, &nes, in nfsrvd_dorpc()
520 nfsd_fhtovp(nd, &fh, lktype, &vp, &nes, in nfsrvd_dorpc()
623 int i, lktype, op, op0 = 0, statsinprog = 0; in nfsrvd_compound() local
1037 lktype = nfsv4_opflag[op].lktype; in nfsrvd_compound()
1043 lktype = LK_SHARED; in nfsrvd_compound()
1045 if (NFSVOPLOCK(vp, lktype) == 0) in nfsrvd_compound()
/netbsd-src/sys/fs/adosfs/
H A Dadvfsops.c329 adosfs_root(struct mount *mp, int lktype, struct vnode **vpp) in adosfs_root() argument
334 error = VFS_VGET(mp, (ino_t)VFSTOADOSFS(mp)->rootb, lktype, &nvp); in adosfs_root()
368 adosfs_vget(struct mount *mp, ino_t an, int lktype, struct vnode **vpp) in adosfs_vget() argument
378 error = vn_lock(*vpp, lktype); in adosfs_vget()
692 adosfs_fhtovp(struct mount *mp, struct fid *fhp, int lktype, in adosfs_fhtovp() argument
711 if ((error = VFS_VGET(mp, ifh.ifid_ino, lktype, &nvp)) != 0) { in adosfs_fhtovp()
/netbsd-src/sys/fs/cd9660/
H A Dcd9660_vfsops.c644 cd9660_root(struct mount *mp, int lktype, struct vnode **vpp) in cd9660_root() argument
651 return cd9660_vget(mp, ino, lktype, vpp); in cd9660_root()
709 cd9660_fhtovp(struct mount *mp, struct fid *fhp, int lktype, struct vnode **vpp) in cd9660_fhtovp() argument
725 if ((error = VFS_VGET(mp, ifh.ifid_ino, lktype, &nvp)) != 0) { in cd9660_fhtovp()
740 cd9660_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in cd9660_vget() argument
747 error = vn_lock(*vpp, lktype); in cd9660_vget()
/netbsd-src/sys/fs/ntfs/
H A Dntfs_vfsops.c574 ntfs_root(struct mount *mp, int lktype, struct vnode **vpp) in ntfs_root() argument
581 error = VFS_VGET(mp, (ino_t)NTFS_ROOTINO, lktype, &nvp); in ntfs_root()
653 ntfs_fhtovp(struct mount *mp, struct fid *fhp, int lktype, struct vnode **vpp) in ntfs_fhtovp() argument
665 lktype, vpp); in ntfs_fhtovp()
826 ntfs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in ntfs_vget() argument
828 return ntfs_vgetex(mp, ino, NTFS_A_DATA, "", lktype, vpp); in ntfs_vget()
/netbsd-src/sys/ufs/chfs/
H A Dchfs_vfsops.c452 chfs_root(struct mount *mp, int lktype, struct vnode **vpp) in chfs_root() argument
457 if ((error = VFS_VGET(mp, (ino_t)UFS_ROOTINO, lktype, &vp)) != 0) in chfs_root()
658 chfs_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in chfs_vget() argument
666 error = vn_lock(*vpp, lktype); in chfs_vget()
680 chfs_fhtovp(struct mount *mp, struct fid *fhp, int lktype, struct vnode **vpp) in chfs_fhtovp() argument
/netbsd-src/sys/fs/union/
H A Dunion_vfsops.c408 union_root(struct mount *mp, int lktype, struct vnode **vpp) in union_root() argument
429 vn_lock(*vpp, lktype | LK_RETRY); in union_root()
504 union_vget(struct mount *mp, ino_t ino, int lktype, struct vnode **vpp) in union_vget() argument
/netbsd-src/sys/fs/ptyfs/
H A Dptyfs_vfsops.c389 ptyfs_root(struct mount *mp, int lktype, struct vnode **vpp) in ptyfs_root() argument
397 error = vn_lock(*vpp, lktype); in ptyfs_root()
461 ptyfs_vget(struct mount *mp, ino_t ino, int lktype, in ptyfs_vget() argument
/netbsd-src/sys/fs/udf/
H A Dudf_vfsops.c752 udf_root(struct mount *mp, int lktype, struct vnode **vpp) in udf_root() argument
763 error = udf_get_node(ump, dir_loc, &root_dir, lktype); in udf_root()
903 udf_vget(struct mount *mp, ino_t ino, int lktype, in udf_vget() argument
916 udf_fhtovp(struct mount *mp, struct fid *fhp, int lktype, in udf_fhtovp() argument
/netbsd-src/sys/miscfs/procfs/
H A Dprocfs_vfsops.c236 procfs_root(struct mount *mp, int lktype, struct vnode **vpp) in procfs_root()
242 error = vn_lock(*vpp, lktype);
293 procfs_vget(struct mount *mp, ino_t ino, int lktype, in procfs_loadvnode()
227 procfs_root(struct mount * mp,int lktype,struct vnode ** vpp) procfs_root() argument
284 procfs_vget(struct mount * mp,ino_t ino,int lktype,struct vnode ** vpp) procfs_vget() argument
/netbsd-src/sys/fs/msdosfs/
H A Dmsdosfs_vfsops.c967 msdosfs_root(struct mount *mp, int lktype, struct vnode **vpp) in msdosfs_root() argument
978 error = vn_lock(*vpp, lktype); in msdosfs_root()
1082 msdosfs_fhtovp(struct mount *mp, struct fid *fhp, int lktype, struct vnode **vpp) in msdosfs_fhtovp() argument
1108 error = vn_lock(*vpp, lktype); in msdosfs_fhtovp()
1143 msdosfs_vget(struct mount *mp, ino_t ino, int lktype, in msdosfs_vget() argument
/netbsd-src/sys/fs/puffs/
H A Dpuffs_vfsops.c455 puffs_vfsop_root(struct mount *mp, int lktype, struct vnode **vpp) in puffs_vfsop_root() argument
464 rv = vn_lock(*vpp, lktype); in puffs_vfsop_root()
616 puffs_vfsop_fhtovp(struct mount *mp, struct fid *fhp, int lktype, in puffs_vfsop_fhtovp() argument
661 vn_lock(vp, lktype | LK_RETRY); in puffs_vfsop_fhtovp()

12