Lines Matching defs:nodep
68 * If it is, search the hash list for an nodep - nodep->nm_filevp
69 * pair. If it exists, return that nodep to the user.
71 * to the nodep->nm_filevp then place the pair on the hash list.
79 struct namenode *nodep = VTONM(*vpp);
92 infilevp = outfilevp = nodep->nm_filevp;
107 namefind(outfilevp, nodep->nm_mountpt)) != NULL) {
120 mutex_enter(&nodep->nm_lock);
129 bcopy(&nodep->nm_vattr, &newnamep->nm_vattr, sizeof (vattr_t));
136 newnamep->nm_filep = nodep->nm_filep;
137 newnamep->nm_mountpt = nodep->nm_mountpt;
138 mutex_exit(&nodep->nm_lock);
166 struct namenode *nodep = VTONM(vp);
171 error = VOP_CLOSE(nodep->nm_filevp, flag, count, offset, crp, ct);
173 (void) VOP_FSYNC(nodep->nm_filevp, FSYNC, crp, ct);
177 * In other cases, nodep->nm_filep keeps a reference
181 if ((nodep->nm_flag & NMNMNT) != 0) {
183 nameremove(nodep);
186 VN_RELE(nodep->nm_filevp);
221 struct namenode *nodep = VTONM(vp);
225 mutex_enter(&nodep->nm_lock);
226 bcopy(&nodep->nm_vattr, vap, sizeof (vattr_t));
227 mutex_exit(&nodep->nm_lock);
230 if (error = VOP_GETATTR(nodep->nm_filevp, &va, flags, crp, ct))
245 struct namenode *nodep = vnp;
248 if (crgetuid(crp) != nodep->nm_vattr.va_uid) {
250 if (!groupmember(nodep->nm_vattr.va_gid, crp))
254 return (secpolicy_vnode_access2(crp, NMTOV(nodep),
255 nodep->nm_vattr.va_uid, nodep->nm_vattr.va_mode << shift,
270 struct namenode *nodep = VTONM(vp);
271 struct vattr *nmvap = &nodep->nm_vattr;
281 (void) VOP_RWLOCK(nodep->nm_filevp, V_WRITELOCK_TRUE, ctp);
282 mutex_enter(&nodep->nm_lock);
290 nm_access_unlocked, nodep);
324 mutex_exit(&nodep->nm_lock);
325 VOP_RWUNLOCK(nodep->nm_filevp, V_WRITELOCK_TRUE, ctp);
339 struct namenode *nodep = VTONM(vp);
342 mutex_enter(&nodep->nm_lock);
343 error = nm_access_unlocked(nodep, mode, crp);
344 mutex_exit(&nodep->nm_lock);
346 return (VOP_ACCESS(nodep->nm_filevp, mode, flags, crp, ct));
396 struct namenode *nodep = VTONM(vp);
406 if (!(nodep->nm_flag & NMNMNT)) {
407 ASSERT(nodep->nm_filep->f_vnode == nodep->nm_filevp);
408 (void) closef(nodep->nm_filep);
414 namenodeno_free(nodep->nm_vattr.va_nodeid);
415 kmem_free(nodep, sizeof (struct namenode));