Lines Matching defs:newnamep
81 struct namenode *newnamep;
106 if ((newnamep =
108 struct vnode *vp = NMTOV(newnamep);
114 newnamep = kmem_zalloc(sizeof (struct namenode), KM_SLEEP);
116 newnamep->nm_vnode = newvp;
118 mutex_init(&newnamep->nm_lock, NULL, MUTEX_DEFAULT, NULL);
127 newvp->v_data = (caddr_t)newnamep;
129 bcopy(&nodep->nm_vattr, &newnamep->nm_vattr, sizeof (vattr_t));
130 newnamep->nm_vattr.va_type = outfilevp->v_type;
131 newnamep->nm_vattr.va_nodeid = namenodeno_alloc();
132 newnamep->nm_vattr.va_size = (u_offset_t)0;
133 newnamep->nm_vattr.va_rdev = outfilevp->v_rdev;
134 newnamep->nm_flag = NMNMNT;
135 newnamep->nm_filevp = outfilevp;
136 newnamep->nm_filep = nodep->nm_filep;
137 newnamep->nm_mountpt = nodep->nm_mountpt;
143 nameinsert(newnamep);
152 *vpp = NMTOV(newnamep);