/xnu-2422.115.4/bsd/vfs/ |
H A D | kpi_vfs.c | 3659 *#% link tdvp L U U 3671 VNOP_LINK(vnode_t vp, vnode_t tdvp, struct componentname * cnp, vfs_context_t ctx) argument 3681 if ( !NATIVE_XATTR(tdvp) && (vp->v_type == VREG)) { 3699 a.a_tdvp = tdvp; 3703 _err = (*tdvp->v_op[vnop_link_desc.vdesc_offset])(&a); 3707 post_event_if_success(tdvp, _err, NOTE_WRITE); 3714 struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap, 3815 _err = VNOP_COMPOUND_RENAME(fdvp, fvpp, fcnp, fvap, tdvp, tvpp, tcnp, tvap, flags, ctx); 3820 _err = VNOP_RENAME(fdvp, *fvpp, fcnp, tdvp, *tvpp, tcnp, ctx); 3824 mac_vnode_notify_rename(ctx, *fvpp, tdvp, tcn 3713 vn_rename(struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap, struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap, uint32_t flags, vfs_context_t ctx) argument 3969 VNOP_RENAME(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp, struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp, vfs_context_t ctx) argument 4026 VNOP_COMPOUND_RENAME( struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap, struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap, uint32_t flags, vfs_context_t ctx) argument 5043 VNOP_COPYFILE(struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp, int mode, int flags, vfs_context_t ctx) argument [all...] |
H A D | vfs_syscalls.c | 5927 vnode_t tvp, fvp, tdvp, sdvp; local 5950 tdvp = tond.ni_dvp; 5964 if ((error = vnode_authorize(tdvp, NULL, KAUTH_VNODE_ADD_FILE, ctx)) != 0) 5967 if (fvp == tdvp) 5977 error = VNOP_COPYFILE(fvp, tdvp, tvp, &tond.ni_cnd, uap->mode, uap->flags, ctx); 5981 * nameidone has to happen before we vnode_put(tdvp) 5982 * since it may need to release the fs_nodelock on the tdvp 5988 vnode_put(tdvp); 6011 vnode_t tvp, tdvp; local 6045 fdvp = tdvp [all...] |
H A D | vfs_subr.c | 5521 struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp, 5545 if (tvp == NULLVP && vnode_compound_rename_available(tdvp)) { 5560 tdvp, tvp, fdvp == tdvp, tcnp); 5577 if (fvp == tdvp) { 5592 * o tdvp 5597 if (tdvp->v_parent == fvp) { 5609 } else if (tdvp != fdvp) { 5616 * the simple case of fdvp == tdvp. 5629 /* moving into tdvp o 5520 vn_authorize_rename(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp, struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp, vfs_context_t ctx, void *reserved) argument [all...] |
/xnu-2422.115.4/bsd/hfs/ |
H A D | hfs_link.c | 406 struct vnode *tdvp = ap->a_tdvp; local 470 if ((error = hfs_lockfour(VTOC(tdvp), VTOC(vp), VTOC(fdvp), NULL, HFS_EXCLUSIVE_LOCK, NULL))) { 478 if ((error = hfs_lockpair(VTOC(tdvp), VTOC(vp), HFS_EXCLUSIVE_LOCK))) { 482 tdcp = VTOC(tdvp); 595 cache_purge_negatives(tdvp); 618 error = hfs_update(tdvp, 0); 620 panic("hfs_vnop_link: error %d updating tdvp %p\n", error, tdvp);
|
H A D | hfs_vnops.c | 4062 struct vnode *tdvp = ap->a_tdvp; local 4103 hfsmp = VTOHFS(tdvp); 4135 if ((fdvp == tdvp) && ((hfsmp->hfs_flags & HFS_CASE_SENSITIVE) == 0)) { 4169 error = hfs_lockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL, 4211 tdcp = VTOC(tdvp); 4221 hfs_unlockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL); 4256 hfs_unlockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL); 4337 if (tcp && ((tcp->c_flag & (C_NOEXISTS | C_DELETED)) || !hfs_valid_cnode(hfsmp, tdvp, tcnp, tcp->c_fileid, NULL, &error))) { 4359 if (fdvp != tdvp) { 4369 if (vnode_isdir(fvp) && (fdvp != tdvp)) { [all...] |
/xnu-2422.115.4/bsd/sys/ |
H A D | vnode_internal.h | 391 struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap, 410 struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp,
|
H A D | vnode_if.h | 713 @param tdvp Directory file is being moved to. 743 vnode_t tdvp, /* As passed to VNOP */ 756 struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap,
|
/xnu-2422.115.4/bsd/nfs/ |
H A D | nfs_serv.c | 2523 vnode_t fvp, tvp, tdvp, fdvp, fdirp, tdirp; local 2557 fdvp = tdvp = NULL; 2646 tdvp = toni.ni_dvp; 2695 if (fvp == tdvp) { 2706 * If tvp is a directory and not the same as fdvp, or tdvp is not the same as fdvp, 2722 } else if (tdvp != fdvp) { 2729 /* moving into tdvp or tvp, must have rights to add */ 2730 if ((error = nfsrv_authorize(((tvp != NULL) && vnode_isdir(tvp)) ? tvp : tdvp, 2744 ((error = nfsrv_authorize(tvp, tdvp, KAUTH_VNODE_DELETE, ctx, tnxo, 0)) != 0)) 2755 if ((vnode_mount(fvp) != vnode_mount(tdvp)) || [all...] |
H A D | nfs_vnops.c | 3997 vnode_t tdvp = ap->a_tdvp; local 4009 tdnp = VTONFS(tdvp); 4036 tdmp = vnode_mount(tdvp); 4111 cache_purge_negatives(tdvp); 4115 cache_enter(tdvp, fvp, tcnp); 4116 if (tdvp != fdvp) { /* update parent pointer */ 4122 fnp->n_parent = tdvp; 4123 if (tdvp && !vnode_get(tdvp)) { 4125 vnode_ref(tdvp); 4239 vnode_t tdvp = ap->a_tdvp; local [all...] |
H A D | nfs4_vnops.c | 6563 vnode_t tdvp = ap->a_tdvp; local 6568 nfsnode_t tdnp = VTONFS(tdvp); 6574 if (vnode_mount(vp) != vnode_mount(tdvp)) 6662 cache_purge_negatives(tdvp);
|
/xnu-2422.115.4/bsd/miscfs/devfs/ |
H A D | devfs_vnops.c | 860 struct vnode *tdvp = ap->a_tdvp; local 881 /* can lookup dnode safely for tdvp outside of devfs lock as it is not aliased */ 882 tdp = VTODN(tdvp); 884 if (tdvp->v_mount != vp->v_mount) { 945 struct vnode *tdvp = ap->a_tdvp; local 969 tdp = VTODN(tdvp);
|