Lines Matching defs:cnp
535 struct componentname *cnp = ap->a_cnp;
536 struct ucred *cred = cnp->cn_cred;
538 int lockparent = cnp->cn_flags & LOCKPARENT;
540 int wantparent = cnp->cn_flags & (LOCKPARENT|WANTPARENT);
543 (unsigned int)cnp->cn_namelen, cnp->cn_nameptr, cnp->cn_namelen,
546 error = VOP_ACCESS(dvp, VEXEC, cred, cnp->cn_proc);
550 if ((cnp->cn_flags & ISLASTCN) &&
551 (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME))
562 if ((error = cache_lookup(ap->a_dvp, ap->a_vpp, cnp)) >= 0)
565 if(cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.') {
572 } else if (cnp->cn_flags & ISDOTDOT) {
579 cnp->cn_flags |= PDIRUNLOCK;
592 cnp->cn_flags &= ~PDIRUNLOCK;
596 if (lockparent && (cnp->cn_flags & ISLASTCN)) {
602 cnp->cn_flags &= ~PDIRUNLOCK;
605 error = ntfs_ntlookupfile(ntmp, dvp, cnp, ap->a_vpp);
614 if(!lockparent || (cnp->cn_flags & ISLASTCN) == 0) {
616 cnp->cn_flags |= PDIRUNLOCK;
620 if (cnp->cn_flags & MAKEENTRY)
621 cache_enter(dvp, *ap->a_vpp, cnp);