Searched defs:dvp (Results 26 - 50 of 82) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/fs/devfs/
H A Ddevfs_vnops.c346 struct vnode *dvp; local
540 dvp = DVTOV(dv->dv_dotdot);
541 dv_shadow_node(dvp, dv->dv_name, vp,
808 devfs_lookup(struct vnode *dvp, char *nm, struct vnode **vpp, argument
812 ASSERT(dvp->v_type == VDIR);
814 return (dv_find(VTODV(dvp), nm, vpp, pnp, rdir, cred, 0));
828 devfs_create(struct vnode *dvp, char *nm, struct vattr *vap, vcexcl_t excl, argument
836 error = dv_find(VTODV(dvp), nm, &vp, NULL, NULLVP, cred, 0);
862 devfs_readdir(struct vnode *dvp, struct uio *uiop, struct cred *cred, int *eofp, argument
874 ddv = VTODV(dvp);
[all...]
H A Ddevfs_subr.c677 struct vnode *dvp, /* devfs parent directory vnode */
718 rdvp = VTODV(dvp)->dv_attrvp;
792 VTODV(dvp)->dv_name, nm, error));
805 VTODV(dvp)->dv_name, nm, error));
884 struct dv_node *dvp; local
911 dvp = dv_mknod(ddv, clone_dip, devnm, dmd);
914 return (dvp);
1594 struct dv_node *dvp; local
1597 if ((dvp = devfs_dip_to_dvnode(ddi_root_node())) == NULL)
1600 VN_HOLD(DVTOV(dvp));
676 dv_shadow_node( struct vnode *dvp, char *nm, struct vnode *vp, struct pathname *pnp, struct vnode *rdir, struct cred *cred, int flags) argument
1873 struct vnode *dvp; local
[all...]
/illumos-gate/usr/src/uts/common/fs/fd/
H A Dfdops.c218 fdcreate(vnode_t *dvp, char *comp, vattr_t *vap, enum vcexcl excl, argument
222 return (fdget(dvp, comp, vpp));
337 fdget(struct vnode *dvp, char *comp, struct vnode **vpp) argument
349 vp->v_vfsp = dvp->v_vfsp;
/illumos-gate/usr/src/uts/common/fs/
H A Dgfs.c160 gfs_get_parent_ino(vnode_t *dvp, cred_t *cr, caller_context_t *ct, argument
164 gfs_dir_t *dp = dvp->v_data;
172 } else if (dvp->v_flag & V_XATTRDIR) {
418 gfs_lookup_dot(vnode_t **vpp, vnode_t *dvp, vnode_t *pvp, const char *nm) argument
421 VN_HOLD(dvp);
422 *vpp = dvp;
426 ASSERT(dvp->v_flag & VROOT);
427 VN_HOLD(dvp);
428 *vpp = dvp;
745 const char *nm, vnode_t *dvp, vnode_
744 gfs_dir_lookup_dynamic(gfs_lookup_cb callback, gfs_dir_t *dp, const char *nm, vnode_t *dvp, vnode_t **vpp, cred_t *cr, int flags, int *direntflags, pathname_t *realpnp) argument
797 gfs_dir_lookup_static(int (*compare)(const char *, const char *), gfs_dir_t *dp, const char *nm, vnode_t *dvp, int *idx, vnode_t **vpp, pathname_t *rpnp) argument
889 gfs_dir_lookup(vnode_t *dvp, const char *nm, vnode_t **vpp, cred_t *cr, int flags, int *direntflags, pathname_t *realpnp) argument
1001 gfs_dir_readdir(vnode_t *dvp, uio_t *uiop, int *eofp, void *data, cred_t *cr, caller_context_t *ct, int flags) argument
1064 gfs_vop_lookup(vnode_t *dvp, char *nm, vnode_t **vpp, pathname_t *pnp, int flags, vnode_t *rdir, cred_t *cr, caller_context_t *ct, int *direntflags, pathname_t *realpnp) argument
[all...]
H A Dlookup.c810 dirfindvp(vnode_t *vrootp, vnode_t *dvp, vnode_t *tvp, cred_t *cr, char *dbuf, argument
822 ASSERT(dvp->v_type == VDIR);
838 if ((error = VOP_ACCESS(dvp, VREAD, 0, cr, NULL)) != 0)
846 (void) VOP_RWLOCK(dvp, V_WRITELOCK_FALSE, NULL);
847 error = VOP_READDIR(dvp, &uio, cr, &eof, NULL, 0);
848 VOP_RWUNLOCK(dvp, V_WRITELOCK_FALSE, NULL);
867 error = VOP_LOOKUP(dvp, dp->d_name, &cmpvp, &pnp, 0,
895 * we ensured that dvp is the parent of vp. This is possible in some
899 error = VOP_LOOKUP(dvp, ".zfs", &cmpvp, &pnp, 0, vrootp, cr,
H A Dfs_subr.c737 fs_vnevent_nosupport(vnode_t *vp, vnevent_t e, vnode_t *dvp, char *fnm, argument
746 fs_vnevent_support(vnode_t *vp, vnevent_t e, vnode_t *dvp, char *fnm, argument
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_dir.c122 struct vnode *dvp, *vp; local
141 dvp = ITOV(dip);
156 VN_HOLD(dvp);
164 VN_HOLD(dvp);
166 dnlc_enter(dvp, namep, ITOV(*ipp));
170 if ((!skipdnlc) && (vp = dnlc_lookup(dvp, namep))) {
299 dnlc_enter(dvp, namep,
/illumos-gate/usr/src/uts/common/fs/bootfs/
H A Dbootfs_vnops.c169 bootfs_lookup(vnode_t *dvp, char *nm, vnode_t **vpp, struct pathname *pnp, argument
175 bootfs_node_t *bpp = (bootfs_node_t *)dvp->v_data;
184 VN_HOLD(dvp);
185 *vpp = dvp;
/illumos-gate/usr/src/uts/common/fs/fifofs/
H A Dfifovnops.c1565 fifo_create(struct vnode *dvp, char *name, vattr_t *vap, enum vcexcl excl, argument
1571 ASSERT(dvp && (dvp->v_flag & VROOT) && *name == '\0');
1573 if (mode && (error = fifo_access(dvp, mode, 0, cr, ct)))
1575 VN_HOLD(dvp);
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_pathname.c559 * Holds on dvp and rootvp (if not rootdir) are required by lookuppnvp()
564 vnode_t **vp, vnode_t *rootvp, vnode_t *dvp, smb_attr_t *attr, cred_t *cred)
569 VN_HOLD(dvp);
573 err = lookuppnvp(pn, rpn, flags, NULL, vp, rootvp, dvp, cred);
563 smb_pathname_lookup(pathname_t *pn, pathname_t *rpn, int flags, vnode_t **vp, vnode_t *rootvp, vnode_t *dvp, smb_attr_t *attr, cred_t *cred) argument
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_profile.c474 walk_dir(struct vnode *dvp, void *arg, int (*callback)(char *, void *)) argument
484 ASSERT(dvp);
503 (void) VOP_RWLOCK(dvp, V_WRITELOCK_FALSE, NULL);
504 error = VOP_READDIR(dvp, &uio, kcred, &eof, NULL, 0);
505 VOP_RWUNLOCK(dvp, V_WRITELOCK_FALSE, NULL);
1000 prof_lookup(vnode_t *dvp, char *nm, struct vnode **vpp, struct cred *cred) argument
1002 struct sdev_node *ddv = VTOSDEV(dvp);
H A Dsdev_zvolops.c445 devzvol_create_pool_dirs(struct vnode *dvp) argument
472 ASSERT(dvp->v_count > 0);
473 rc = VOP_LOOKUP(dvp, nvpair_name(elem), &vp, NULL, 0,
693 devzvol_lookup(struct vnode *dvp, char *nm, struct vnode **vpp, argument
698 struct sdev_node *parent = VTOSDEV(dvp);
706 if ((error = VOP_ACCESS(dvp, VEXEC, 0, cred, ct)) != 0)
727 res = prof_lookup(dvp, nm, vpp, cred);
741 res = prof_lookup(dvp, nm, vpp, cred);
815 devzvol_create(struct vnode *dvp, char *nm, struct vattr *vap, vcexcl_t excl, argument
824 error = devzvol_lookup(dvp, n
848 sdev_iter_datasets(struct vnode *dvp, int arg, char *name) argument
889 sdev_iter_snapshots(struct vnode *dvp, char *name) argument
896 devzvol_readdir(struct vnode *dvp, struct uio *uiop, struct cred *cred, int *eofp, caller_context_t *ct_unused, int flags_unused) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_dir.c188 struct vnode *dvp; /* directory vnode ptr */ local
216 dvp = ITOV(dp);
217 if (!skipdnlc && (vp = dnlc_lookup(dvp, namep))) {
245 VN_HOLD(dvp); /* want ourself, "." */
272 dnlc_update(dvp, namep, ITOV(*ipp));
290 dnlc_update(dvp, namep, ITOV(*ipp));
295 dnlc_enter(dvp, namep, DNLC_NO_VNODE);
556 VN_HOLD(dvp); /* want ourself, "." */
573 dnlc_update(dvp, namep, ITOV(*ipp));
608 dnlc_enter(dvp, name
1021 vnode_t *dvp; /* directory vnode ptr */ local
1664 vnode_t *dvp; local
2416 vnode_t *dvp, *vp; local
[all...]
/illumos-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_node.c113 struct hsnode *dhp, struct vnode *dvp, struct vnode **vpp,
761 struct vnode *dvp,
783 if (dvp->v_type != VDIR)
786 if (error = hs_access(dvp, (mode_t)VEXEC, cred))
789 if (hsfs_use_dnlc && (*vpp = dnlc_lookup(dvp, name)))
792 dhp = VTOH(dvp);
793 fsp = VFS_TO_HSFS(dvp->v_vfsp);
836 hs_filldirent(dvp, &dhp->hs_dirent);
854 error = fbread(dvp, (offset_t)(offset & MAXBMASK),
862 cmpname, cmpnamelen, fsp, dhp, dvp, vp
760 hs_dirlook( struct vnode *dvp, char *name, int namlen, struct vnode **vpp, struct cred *cred) argument
1442 process_dirblock( struct fbuf *fbp, uint_t *offset, uint_t last_offset, char *nm, int nmlen, struct hsfs *fsp, struct hsnode *dhp, struct vnode *dvp, struct vnode **vpp, int *error) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs3_xdr.c2379 vnode_t *dvp; local
2414 dvp = objp->dir_attributes.fres.vp;
2415 rp = VTOR(dvp);
2418 pov.fres.vp = dvp;
2523 nvp = makenfs3node_va(&fh, &va, dvp->v_vfsp,
2526 dnlc_update(dvp, dp->d_name, nvp);
H A Dnfs4_client_state.c2026 vnode_t *dvp = NULL, *vp = NULL; local
2046 dvp = resend_rqstp->lr_dvp;
2065 if (dvp) {
2066 drp = VTOR4(dvp);
2076 reopen = 1; /* NULL dvp means this is a reopen */
2099 argop[0].nfs_argop4_u.opcputfh.sfh = VTOR4(dvp)->r_fh;
2100 mi = VTOMI4(dvp);
2191 sfh = sfh4_get(&gf_res->object, VTOMI4(dvp));
2192 *vpp = makenfs4node(sfh, garp, dvp->v_vfsp, t, cr, dvp,
[all...]
H A Dnfs4_rnode.c439 * used when dvp (vnode for parent directory) is not available;
508 hrtime_t t, cred_t *cr, vnode_t *dvp, nfs4_fname_t *nm)
517 ASSERT(dvp != NULL);
531 sv_activate(&vp, dvp, &nm, newnode);
532 if (dvp->v_flag & V_XATTRDIR) {
507 makenfs4node(nfs4_sharedfh_t *fh, nfs4_ga_res_t *garp, struct vfs *vfsp, hrtime_t t, cred_t *cr, vnode_t *dvp, nfs4_fname_t *nm) argument
H A Dnfs_srv.c341 vnode_t *dvp; local
373 dvp = rootdir;
374 VN_HOLD(dvp);
376 dvp = nfs_fhtovp(fhp, exi);
377 if (dvp == NULL) {
390 VN_RELE(dvp);
415 error = rfs_publicfh_mclookup(name, dvp, cr, &vp, &exi,
421 error = VOP_LOOKUP(dvp, name, &vp, NULL, 0, NULL, cr,
454 VN_RELE(dvp);
1683 vnode_t *dvp; local
2368 vnode_t *dvp = NULL; local
[all...]
H A Dnfs4_srv_readdir.c106 nfs4_readdir_getvp(vnode_t *dvp, char *d_name, vnode_t **vpp, argument
120 if (error = VOP_LOOKUP(dvp, d_name, &vp, NULL, 0, NULL, cs->cr,
143 if (ismntpt == 0 && dvp->v_vfsp == vp->v_vfsp && expseudo == 0) {
395 vnode_t *dvp = cs->vp; local
452 if (dvp == NULL) {
461 if (vn_ismntpt(dvp)) {
466 if (dvp->v_type != VDIR) {
485 error = VOP_ACCESS(dvp, VREAD, 0, cs->cr, NULL);
521 if (error = rfs4_get_sb_encode(dvp->v_vfsp, &dsbe)) {
654 (void) VOP_RWLOCK(dvp, V_WRITELOCK_FALS
[all...]
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_vnops.c981 struct vnode *dvp,
999 if (dvp->v_vfsp->vfs_flag & VFS_UNMOUNTED)
1003 * verify that the dvp is still valid on the disk
1005 fsp = VFSTOPCFS(dvp->v_vfsp);
1011 if (VTOPC(dvp) == NULL || VTOPC(dvp)->pc_flags & PC_INVAL) {
1019 VN_HOLD(dvp);
1020 *vpp = dvp;
1025 error = pc_dirlook(VTOPC(dvp), nm, &pcp);
1038 struct vnode *dvp,
980 pcfs_lookup( struct vnode *dvp, char *nm, struct vnode **vpp, struct pathname *pnp, int flags, struct vnode *rdir, struct cred *cr, caller_context_t *ct, int *direntflags, pathname_t *realpnp) argument
1037 pcfs_create( struct vnode *dvp, char *nm, struct vattr *vap, enum vcexcl exclusive, int mode, struct vnode **vpp, struct cred *cr, int flag, caller_context_t *ct, vsecattr_t *vsecp) argument
1209 pcfs_mkdir( struct vnode *dvp, char *nm, struct vattr *vap, struct vnode **vpp, struct cred *cr, caller_context_t *ct, int flags, vsecattr_t *vsecp) argument
1255 pcfs_rmdir( struct vnode *dvp, char *nm, struct vnode *cdir, struct cred *cr, caller_context_t *ct, int flags) argument
1297 pcfs_readdir( struct vnode *dvp, struct uio *uiop, struct cred *cr, int *eofp, caller_context_t *ct, int flags) argument
2171 struct vnode *dvp = PCTOV(pcp); local
2314 pc_read_long_fn(struct vnode *dvp, struct uio *uiop, struct pc_dirent *ld, struct pcdir **epp, offset_t *offset, struct buf **bp) argument
2357 pc_read_short_fn(struct vnode *dvp, struct uio *uiop, struct pc_dirent *ld, struct pcdir **epp, offset_t *offset, struct buf **bp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/portfs/
H A Dport_fop.c246 static int port_fop_vnevent(femarg_t *vf, vnevent_t vnevent, vnode_t *dvp,
733 port_fop_getdvp(void *objptr, vnode_t **vp, vnode_t **dvp, argument
749 * lookuppn may fail with EINVAL, if dvp is non-null(like when
750 * looking for "."). So call again with dvp = NULL.
756 error = lookuppn(&pn, NULL, follow, dvp, vp);
763 if (dvp != NULL) {
764 *dvp = NULL;
817 port_check_timestamp(portfop_cache_t *pfcp, vnode_t *vp, vnode_t *dvp, argument
874 pfp->pfop_vp != vp || pfp->pfop_dvp != dvp ||
1106 vnode_t *dvp)
1104 port_pfp_setup(portfop_t **pfpp, port_t *pp, vnode_t *vp, portfop_cache_t *pfcp, uintptr_t object, int events, void *user, char *cname, int clen, vnode_t *dvp) argument
1260 vnode_t *vp, *dvp, *oldvp = NULL, *olddvp = NULL, *orig; local
1784 port_fop_sendevent(vnode_t *vp, int events, vnode_t *dvp, char *cname) argument
2322 port_fop_vnevent(femarg_t *vf, vnevent_t vnevent, vnode_t *dvp, char *name, caller_context_t *ct) argument
[all...]
/illumos-gate/usr/src/uts/i86pc/io/apix/
H A Dapix_utils.c1129 apix_dev_vector_t *dvp, *prev = NULL; local
1137 for (dvp = apix_dev_vector[major]; dvp != NULL;
1138 prev = dvp, dvp = dvp->dv_next) {
1139 if (dvp->dv_dip == dip && dvp->dv_inum == inum &&
1140 dvp->dv_type == type) {
1152 prev->dv_next = dvp
1167 apix_dev_vector_t *dvp; local
1211 apix_dev_vector_t *dvp; local
1241 apix_dev_vector_t *dvp; local
1268 apix_dev_vector_t *dvp; local
[all...]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_vop.c311 vnode_t *dvp,
331 * If lookup is for "", just return dvp.
334 vn_hold(dvp);
335 *vpp = dvp;
339 if (fstatat(dvp->v_fd, name, &st, AT_SYMLINK_NOFOLLOW) == -1)
353 fd = openat(dvp->v_fd, name, omode, 0);
368 vp = vncache_enter(&st, dvp, name, fd);
377 vnode_t *dvp,
393 * If creating "", just return dvp.
396 vn_hold(dvp);
310 fop_lookup( vnode_t *dvp, char *name, vnode_t **vpp, pathname_t *pnp, int flags, vnode_t *rdir, cred_t *cr, caller_context_t *ct, int *deflags, pathname_t *ppnp) argument
376 fop_create( vnode_t *dvp, char *name, vattr_t *vap, vcexcl_t excl, int mode, vnode_t **vpp, cred_t *cr, int flags, caller_context_t *ct, vsecattr_t *vsecp) argument
462 fop_remove( vnode_t *dvp, char *name, cred_t *cr, caller_context_t *ct, int flags) argument
536 fop_mkdir( vnode_t *dvp, char *name, vattr_t *vap, vnode_t **vpp, cred_t *cr, caller_context_t *ct, int flags, vsecattr_t *vsecp) argument
574 fop_rmdir( vnode_t *dvp, char *name, vnode_t *cdir, cred_t *cr, caller_context_t *ct, int flags) argument
639 fop_symlink( vnode_t *dvp, char *linkname, vattr_t *vap, char *target, cred_t *cr, caller_context_t *ct, int flags) argument
1141 fop_vnevent(vnode_t *vp, vnevent_t vnevent, vnode_t *dvp, char *fnm, caller_context_t *ct) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/lofs/
H A Dlofs_vnops.c292 vnode_t *dvp,
305 vnode_t *realdvp = realvp(dvp);
306 struct loinfo *li = vtoli(dvp->v_vfsp);
315 * dvp (empty name == lookup "."). If an XATTR flag is set
319 VN_HOLD(dvp);
320 *vpp = dvp;
352 VN_HOLD(dvp);
354 *vpp = dvp;
359 if ((vtol(dvp))->lo_looping & LO_LOOPING) {
435 if ((vtol(dvp))
291 lo_lookup( vnode_t *dvp, char *nm, vnode_t **vpp, struct pathname *pnp, int flags, vnode_t *rdir, struct cred *cr, caller_context_t *ct, int *direntflags, pathname_t *realpnp) argument
663 lo_create( vnode_t *dvp, char *nm, struct vattr *va, enum vcexcl exclusive, int mode, vnode_t **vpp, struct cred *cr, int flag, caller_context_t *ct, vsecattr_t *vsecp) argument
745 lo_remove( vnode_t *dvp, char *nm, struct cred *cr, caller_context_t *ct, int flags) argument
902 lo_mkdir( vnode_t *dvp, char *nm, struct vattr *va, vnode_t **vpp, struct cred *cr, caller_context_t *ct, int flags, vsecattr_t *vsecp) argument
938 lo_rmdir( vnode_t *dvp, char *nm, vnode_t *cdir, struct cred *cr, caller_context_t *ct, int flags) argument
959 lo_symlink( vnode_t *dvp, char *lnm, struct vattr *tva, char *tnm, struct cred *cr, caller_context_t *ct, int flags) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_ctldir.c451 zfsctl_root_lookup(vnode_t *dvp, char *nm, vnode_t **vpp, pathname_t *pnp, argument
455 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data;
467 err = VFS_ROOT(dvp->v_vfsp, vpp);
469 err = gfs_vop_lookup(dvp, nm, vpp, pnp, flags, rdir,
682 zfsctl_snapdir_remove(vnode_t *dvp, char *name, vnode_t *cwd, cred_t *cr, argument
685 zfsctl_snapdir_t *sdp = dvp->v_data;
693 zfsvfs = dvp->v_vfsp->vfs_data;
710 err = zfsctl_snapshot_zname(dvp, name, sizeof (snapname), snapname);
741 zfsctl_snapdir_mkdir(vnode_t *dvp, char *dirname, vattr_t *vap, vnode_t **vpp, argument
744 zfsvfs_t *zfsvfs = dvp
778 zfsctl_snapdir_lookup(vnode_t *dvp, char *nm, vnode_t **vpp, pathname_t *pnp, int flags, vnode_t *rdir, cred_t *cr, caller_context_t *ct, int *direntflags, pathname_t *realpnp) argument
951 zfsctl_shares_lookup(vnode_t *dvp, char *nm, vnode_t **vpp, pathname_t *pnp, int flags, vnode_t *rdir, cred_t *cr, caller_context_t *ct, int *direntflags, pathname_t *realpnp) argument
1210 vnode_t *dvp; local
1269 vnode_t *dvp, *vp; local
1329 vnode_t *dvp; local
[all...]

Completed in 184 milliseconds

1234