/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/ |
H A D | hfs_lookup.c | 138 * Lookup *cnp in directory *dvp, return it in *vpp. 142 #% lookup dvp L ? ? 145 IN struct vnode *dvp - Parent node of file; 153 hfs_lookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, int *cnode_locked) argument 170 hfsmp = VTOHFS(dvp); 190 if (hfs_lock(VTOC(dvp), HFS_EXCLUSIVE_LOCK) != 0) { 194 dcp = VTOC(dvp); 202 tsleep((caddr_t)dvp, PRIBIO, "hfs_lookup", 1); 272 cache_enter(dvp, NULL, cnp); 296 if ((retval = vnode_get(dvp))) 422 struct vnode *dvp = ap->a_dvp; local [all...] |
H A D | hfs_vnops.c | 80 static int hfs_makenode(struct vnode *dvp, struct vnode **vpp, 187 struct vnode *dvp = ap->a_dvp; local 192 if (VTOVCB(dvp)->vcbSigWord != kHFSPlusSigWord) { 197 error = hfs_makenode(dvp, vpp, ap->a_cnp, vap, ap->a_context); 1603 struct vnode *dvp = ap->a_dvp; local 1605 struct cnode *dcp = VTOC(dvp); 1612 if (dvp == vp) { 1618 error = hfs_removedir(dvp, vp, ap->a_cnp, 0); 1627 * Both dvp and vp cnodes are locked 1630 hfs_removedir(struct vnode *dvp, struc argument 1789 struct vnode *dvp = ap->a_dvp; local 1864 hfs_removefile(struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int flags, int skip_reserve, int allow_dirs) argument 2773 struct vnode *dvp = ap->a_dvp; local 3470 hfs_makenode(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct vnode_attr *vap, vfs_context_t ctx) argument 3754 struct vnode *dvp = NULLVP; local [all...] |
H A D | hfs_cnode.c | 522 struct vnode *dvp, 566 if ((dvp != NULL) && 568 VTOC(dvp)->c_lockowner == current_thread()) { 569 panic("hfs_getnewvnode: unexpected hold of parent cnode %p", VTOC(dvp)); 601 !hfs_valid_cnode(hfsmp, dvp, (wantrsrc ? NULL : cnp), cp->c_fileid)) { 729 vfsp.vnfs_dvp = dvp; 754 if (dvp == NULLVP || cnp == NULL || !(cnp->cn_flags & MAKEENTRY)) 857 hfs_valid_cnode(struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp, cnid_t cnid) argument 868 /* XXX optimization: check write count in dvp */ 872 if (dvp 520 hfs_getnewvnode( struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp, struct cat_desc *descp, int flags, struct cat_attr *attrp, struct cat_fork *forkp, struct vnode **vpp) argument [all...] |
H A D | hfs_cnode.h | 246 extern int hfs_getnewvnode(struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp, 275 extern int hfs_valid_cnode(struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp, cnid_t cnid);
|
H A D | hfs_link.c | 632 * Note: dvp and vp cnodes are already locked. 636 hfs_unlink(struct hfsmount *hfsmp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int skip_reserve) argument 654 dcp = VTOC(dvp); 669 * name passed in and parent id from dvp (instead of using 838 HFS_KNOTE(dvp, NOTE_WRITE); 870 struct vnode * dvp = NULLVP; local 915 if (hfs_vget(hfsmp, kRootDirID, &dvp, 0) != 0) { 918 dcp = VTOC(dvp); 978 if (dvp) { 980 vnode_put(dvp); [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/ |
H A D | vfs_cache.c | 148 static vnode_t cache_lookup_locked(vnode_t dvp, struct componentname *cnp); 153 static void cache_enter_locked(vnode_t dvp, vnode_t vp, struct componentname *cnp); 166 #define NCHHASH(dvp, hash_val) \ 167 (&nchashtbl[(dvp->v_id ^ (hash_val)) & nchashmask]) 280 vnode_t dvp; local 341 ret = VFS_VGET(vp->v_mount, (ino64_t)va.va_parentid, &dvp, ctx); 346 if (!fixhardlink && (vp->v_parent != dvp)) { 347 vnode_update_identity(vp, dvp, NULL, 0, 0, VNODE_UPDATE_PARENT); 350 vp = dvp; 360 if (vnode_ref(dvp) ! 475 vnode_update_identity(vnode_t vp, vnode_t dvp, const char *name, int name_len, int name_hashval, int flags) argument 1131 cache_lookup_locked(vnode_t dvp, struct componentname *cnp) argument 1213 cache_lookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp) argument 1311 cache_enter_with_gen(struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int gen) argument 1330 cache_enter(struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument 1344 cache_enter_locked(struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument [all...] |
H A D | kpi_vfs.c | 135 static void xattrfile_remove(vnode_t dvp, const char *basename, 137 static void xattrfile_setattr(vnode_t dvp, const char * basename, 1732 vnode_setparent(vnode_t vp, vnode_t dvp) argument 1734 vp->v_parent = dvp; 2515 *#% lookup dvp L ? ? 2550 VNOP_LOOKUP(vnode_t dvp, vnode_t *vpp, struct componentname *cnp, vfs_context_t ctx) argument 2559 a.a_dvp = dvp; 2563 thread_safe = THREAD_SAFE_FS(dvp); 2566 if ( (_err = lock_fsnode(dvp, &funnel_state)) ) { 2570 _err = (*dvp 2615 VNOP_CREATE(vnode_t dvp, vnode_t * vpp, struct componentname * cnp, struct vnode_attr * vap, vfs_context_t ctx) argument 2665 VNOP_WHITEOUT(vnode_t dvp, struct componentname * cnp, int flags, vfs_context_t ctx) argument 2708 VNOP_MKNOD(vnode_t dvp, vnode_t * vpp, struct componentname * cnp, struct vnode_attr * vap, vfs_context_t ctx) argument 2970 vnode_t dvp; local 3460 VNOP_REMOVE(vnode_t dvp, vnode_t vp, struct componentname * cnp, int flags, vfs_context_t ctx) argument 3893 VNOP_MKDIR(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct vnode_attr *vap, vfs_context_t ctx) argument 3945 VNOP_RMDIR(struct vnode *dvp, struct vnode *vp, struct componentname *cnp, vfs_context_t ctx) argument 3987 xattrfile_remove(vnode_t dvp, const char * basename, vfs_context_t ctx, int thread_safe, int force) argument 4075 xattrfile_setattr(vnode_t dvp, const char * basename, struct vnode_attr * vap, vfs_context_t ctx, int thread_safe) argument 4148 VNOP_SYMLINK(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct vnode_attr *vap, char *target, vfs_context_t ctx) argument [all...] |
H A D | vfs_xattr.c | 493 vnode_t dvp; local 513 err = get_shadow_dir(&dvp, context); 518 (void) VNOP_REMOVE(dvp, svp, &cn, 0, context); 519 vnode_put(dvp); 606 vnode_t dvp = NULLVP; local 648 if (get_shadow_dir(&dvp, context) != 0) { 654 if (VNOP_LOOKUP(dvp, &svp, &cn, context) == 0) { 691 error = VNOP_CREATE(dvp, &svp, &cn, &va, context); 695 error = VNOP_LOOKUP(dvp, &svp, &cn, context); 698 if (dvp) { 891 vnode_t dvp = NULLVP; local 2191 vnode_t dvp = NULLVP; local 2418 vnode_t dvp; local [all...] |
H A D | vfs_vnops.c | 205 struct vnode *dvp; local 213 dvp = NULL; 232 dvp = ndp->ni_dvp; 246 dvp, &ndp->ni_cnd, vap); 252 if ((error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx)) != 0) 259 if ((error = vnode_makenamedstream(dvp, &ndp->ni_vp, XATTR_RESOURCEFORK_NAME, 0, ctx)) != 0) 263 if ((error = vn_create(dvp, &ndp->ni_vp, &ndp->ni_cnd, vap, 0, ctx)) != 0) 278 vnode_update_identity(vp, dvp, ndp->ni_cnd.cn_nameptr, ndp->ni_cnd.cn_namelen, ndp->ni_cnd.cn_hash, update_flags); 290 * nameidone has to happen before we vnode_put(dvp) 292 * to release the fs_nodelock on the dvp [all...] |
H A D | vfs_syscalls.c | 2359 vnode_t vp, dvp; local 2379 dvp = nd.ni_dvp; 2414 if ((error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx)) != 0) 2418 error = VNOP_WHITEOUT(dvp, &nd.ni_cnd, CREATE, ctx); 2420 error = vn_create(dvp, &vp, &nd.ni_cnd, &va, 0, ctx); 2435 vnode_update_identity(vp, dvp, nd.ni_cnd.cn_nameptr, nd.ni_cnd.cn_namelen, nd.ni_cnd.cn_hash, update_flags); 2446 * nameidone has to happen before we vnode_put(dvp) 2447 * since it may need to release the fs_nodelock on the dvp 2453 vnode_put(dvp); 2470 vnode_t vp, dvp; local 2595 vnode_t vp, dvp, lvp; local 2770 vnode_t vp, dvp; local 2896 vnode_t vp, dvp; local 2931 vnode_t vp, dvp; local 3188 access1(vnode_t vp, vnode_t dvp, int uflags, vfs_context_t ctx) argument 3298 vnode_t dvp = NULL; local 5278 vnode_t vp, dvp; local 5385 vnode_t vp, dvp; local [all...] |
H A D | vfs_subr.c | 3921 vnode_t dvp; local 3930 dvp = param->vnfs_dvp; 4038 if (dvp && vnode_ref(dvp) == 0) { 4039 vp->v_parent = dvp; 4042 if (dvp && ((param->vnfs_flags & (VNFS_NOCACHE | VNFS_CANTCACHE)) == 0)) { 4047 cache_enter(dvp, vp, cnp); 4450 * Parameters: dvp Pointer to the vnode of the directory 4488 vn_create(vnode_t dvp, vnode_t *vpp, struct componentname *cnp, struct vnode_attr *vap, int flags, vfs_context_t ctx) argument 4499 KAUTH_DEBUG("%p CREATE - '%s'", dvp, cn 4619 vnode_t dvp; member in struct:_vnode_authorize_context 4655 vnode_authorize(vnode_t vp, vnode_t dvp, kauth_action_t action, vfs_context_t ctx) argument 5438 vnode_t vp, dvp; local 5483 vnode_t vp, dvp; local 5760 vnode_authattr_new(vnode_t dvp, struct vnode_attr *vap, int noauth, vfs_context_t ctx) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/union/ |
H A D | union_vnops.c | 97 struct vnode *dvp; local 100 dvp = *dvpp; 109 while ((dvp != udvp) && (dvp->v_flag & VROOT)) { 116 tdvp = dvp; 117 *dvpp = dvp = dvp->v_mount->mnt_vnodecovered; 119 vnode_get(dvp); 123 error = VNOP_LOOKUP(dvp, &tdvp, cnp, ctx); 127 dvp 171 struct vnode *dvp = ap->a_dvp; local 445 struct vnode *dvp = un->un_uppervp; local 517 struct vnode *dvp = un->un_uppervp; local 1032 struct vnode *dvp = dun->un_uppervp; local 1225 struct vnode *dvp = un->un_uppervp; local 1271 struct vnode *dvp = dun->un_uppervp; local 1320 struct vnode *dvp = un->un_uppervp; local [all...] |
H A D | union_subr.c | 376 * dvp Holds the parent union_node to the one we wish to create. 380 * dvp may or may not be locked. allocvp() makes no changes 381 * to dvp. 430 struct vnode *dvp, 582 vnode_get(dvp); 585 un->un_dirvp = dvp; 693 vnode_get(dvp); 694 un->un_dirvp = dvp; 964 * Pass dvp unlocked and referenced on call to relookup(). 966 * If an error occurs, dvp wil 427 union_allocvp(struct vnode **vpp, struct mount *mp, struct vnode *undvp, struct vnode *dvp, struct componentname *cnp, struct vnode *uppervp, struct vnode *lowervp, int docache) argument 1059 union_relookup( struct union_mount *um, struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct componentname *cn, char *path, int pathlen) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/security/ |
H A D | mac_vfs.c | 358 struct vnode *dvp, struct vnode *vp, struct componentname *cnp) 369 dvp, dvp->v_label, vp, vp->v_label, cnp); 473 mac_vnode_check_chdir(vfs_context_t ctx, struct vnode *dvp) argument 483 MAC_CHECK(vnode_check_chdir, cred, dvp, dvp->v_label); 488 mac_vnode_check_chroot(vfs_context_t ctx, struct vnode *dvp, argument 499 MAC_CHECK(vnode_check_chroot, cred, dvp, dvp->v_label, cnp); 504 mac_vnode_check_create(vfs_context_t ctx, struct vnode *dvp, argument 357 mac_vnode_notify_create(vfs_context_t ctx, struct mount *mp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument 520 mac_vnode_check_unlink(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument 720 mac_vnode_check_link(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument 752 mac_vnode_check_lookup(vfs_context_t ctx, struct vnode *dvp, struct componentname *cnp) argument 801 mac_vnode_check_readdir(vfs_context_t ctx, struct vnode *dvp) argument 848 mac_vnode_check_rename_from(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument 865 mac_vnode_check_rename_to(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, int samedir, struct componentname *cnp) argument [all...] |
H A D | mac_vfs_subr.c | 46 vnode_label(struct mount *mp, struct vnode *dvp, struct vnode *vp, argument 74 mp, dvp, vp, cnp);
|
H A D | mac_framework.h | 432 int mac_vnode_check_chdir(vfs_context_t ctx, struct vnode *dvp); 433 int mac_vnode_check_chroot(vfs_context_t ctx, struct vnode *dvp, 435 int mac_vnode_check_create(vfs_context_t ctx, struct vnode *dvp, 455 int mac_vnode_check_link(vfs_context_t ctx, struct vnode *dvp, 458 int mac_vnode_check_lookup(vfs_context_t ctx, struct vnode *dvp, 466 int mac_vnode_check_rename_from(vfs_context_t ctx, struct vnode *dvp, 468 int mac_vnode_check_rename_to(vfs_context_t ctx, struct vnode *dvp, 489 int mac_vnode_check_unlink(vfs_context_t ctx, struct vnode *dvp, 514 struct vnode *dvp, struct vnode *vp, struct componentname *cnp); 515 int vnode_label(struct mount *mp, struct vnode *dvp, struc [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/ |
H A D | ufs_lookup.c | 640 ufs_direnter(ip, dvp, cnp) 642 struct vnode *dvp; 648 dp = VTOI(dvp); 652 if (dvp->v_mount->mnt_maxsymlinklen > 0) 662 return (ufs_direnter2(dvp, &newdir, cnp->cn_context)); 670 ufs_direnter2(struct vnode *dvp, struct direct *dirp, vfs_context_t ctx) argument 682 struct mount *mp=dvp->v_mount; 686 dp = VTOI(dvp); 687 newentrysize = DIRSIZ(FSFMT(dvp), dirp); 703 error = ffs_write_internal(dvp, aui [all...] |
H A D | ufs_vnops.c | 117 extern int ufs_direnter2(struct vnode *dvp, struct direct *dirp, 159 struct vnode *dvp = ap->a_dvp; local 170 (void) relookup(dvp, &tvp, cnp); 552 ufs_remove_internal(vnode_t dvp, vnode_t vp, struct componentname *cnp, int flags) argument 569 (void) relookup(dvp, &tvp, cnp); 590 if ((error = ufs_dirremove(dvp, cnp)) == 0) { 594 VN_KNOTE(dvp, NOTE_WRITE); 656 struct vnode *dvp = ap->a_dvp; local 664 if (dvp->v_mount->mnt_maxsymlinklen > 0) 671 if (dvp 1103 register struct vnode *dvp = ap->a_dvp; local 1233 struct vnode *dvp = ap->a_dvp; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/ |
H A D | nfs_serv.c | 1792 vnode_t vp, dvp, dirp; local 1805 vp = dvp = dirp = NULL; 1849 dvp = ni.ni_dvp; 1916 error = nfsrv_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx, nxo, 0); 1920 error = kauth_acl_inherit(dvp, 1934 error = vnode_authattr_new(dvp, vap, 0, ctx); 1942 error = vnode_authattr_new(dvp, vap, 0, ctx); 1949 error = VNOP_CREATE(dvp, &vp, &ni.ni_cnd, vap, ctx); 1992 error = VNOP_MKNOD(dvp, &vp, &ni.ni_cnd, vap, ctx); 2007 ni.ni_startdir = dvp; 2129 vnode_t vp, dvp, dirp; local 2367 vnode_t vp, dvp, dirp = NULL; local 3128 vnode_t vp, xp, dvp, dirp; local 3285 vnode_t vp, dvp, dirp; local 3508 vnode_t vp, dvp, dirp; local 3721 vnode_t vp, dvp, dirp; local 4801 nfsrv_authorize( vnode_t vp, vnode_t dvp, kauth_action_t action, vfs_context_t ctx, struct nfs_export_options *nxo, int override) argument [all...] |
H A D | nfs_vnops.c | 1005 vnode_t dvp = NULL; local 1164 dvp = vnode_getparent(vp); 1166 dnp = (dvp && vname) ? VTONFS(dvp) : NULL; 1189 if (dvp != NULLVP) 1190 vnode_put(dvp); 1379 vnode_t dvp = ap->a_dvp; local 1396 dnp = VTONFS(dvp); 1398 mp = vnode_mount(dvp); 1418 cache_purge(dvp); 2671 vnode_t dvp = ap->a_dvp; local 2821 vnode_t dvp = ap->a_dvp; local 3006 vnode_t dvp = ap->a_dvp; local 3573 vnode_t dvp = ap->a_dvp; local 3733 vnode_t dvp = ap->a_dvp; local 3886 vnode_t dvp = ap->a_dvp; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/synthfs/ |
H A D | synthfs_vnops.c | 68 static int synthfs_remove_internal(struct vnode *dvp, struct vnode *vp, 133 #% create dvp L U U 137 IN WILLRELE struct vnode *dvp; 158 struct vnode *dvp = ap->a_dvp; local 161 sprintf(debugmsg, "synthfs_create: attempt to create '%s' in '%s' ?!", ap->a_cnp->cn_nameptr, VTOS(dvp)->s_name); 611 #% mkdir dvp L U U 615 IN WILLRELE struct vnode *dvp; 637 struct vnode *dvp = ap->a_dvp; local 644 retval = synthfs_new_directory(VTOVFS(dvp), dvp, cn 688 synthfs_remove_internal(struct vnode *dvp, struct vnode *vp, __unused struct componentname *cnp, __unused vfs_context_t context) argument 813 struct vnode *dvp = ap->a_dvp; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/nullfs/ |
H A D | null_vnops.c | 367 struct vnode *dvp, *vp; local 380 dvp = ap->a_dvp; 382 if (dvp == vp)
|
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ffs/ |
H A D | ffs_extern.h | 138 int ffs_valloc(vnode_t dvp, mode_t mode, kauth_cred_t cred, vnode_t *vpp);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/fdesc/ |
H A D | fdesc_vnops.c | 224 struct vnode *dvp = ap->a_dvp; local 235 *vpp = dvp; 237 if ( (error = vnode_get(dvp)) ) { 243 switch (VTOFDESC(dvp)->fd_type) { 253 error = fdesc_allocvp(Fdevfd, FD_DEVFD, dvp->v_mount, &fvp, VDIR); 281 error = fdesc_allocvp(Flink, fd, dvp->v_mount, &fvp, VLNK); 296 if ((error = fdesc_root(dvp->v_mount, vpp, ap->a_context))) 320 error = fdesc_allocvp(Fdesc, FD_DESC+fd, dvp->v_mount, &fvp, VNON);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | namei.h | 215 int relookup(struct vnode *dvp, struct vnode **vpp,
|