Lines Matching refs:cnp
595 struct componentname *cnp = &ndp->ni_cnd;
596 int lockleaf = (cnp->cn_flags & LOCKLEAF) != 0;
603 cnp->cn_flags |= NOMACCHECK;
604 cnp->cn_pnbuf = uma_zalloc(namei_zone, M_WAITOK);
611 tocp = cnp->cn_pnbuf;
659 cnp->cn_flags |= RDONLY;
679 fromcp = cnp->cn_pnbuf;
719 uma_zfree(namei_zone, cnp->cn_pnbuf);
720 cnp->cn_pnbuf = cp;
723 ndp->ni_pathlen = (tocp - cnp->cn_pnbuf) + 1;
729 if (cnp->cn_pnbuf[0] == '/') {
738 cnp->cn_flags |= NOCROSSMOUNT;
746 cnp->cn_thread = curthread;
751 cnp->cn_flags |= LOCKLEAF;
753 cnp->cn_nameptr = cnp->cn_pnbuf;
775 if ((cnp->cn_flags & ISSYMLINK) == 0) {
776 if (cnp->cn_flags & (SAVENAME | SAVESTART))
777 cnp->cn_flags |= HASBUF;
779 uma_zfree(namei_zone, cnp->cn_pnbuf);
788 if ((cnp->cn_flags & LOCKPARENT) && ndp->ni_pathlen == 1)
802 cp = cnp->cn_pnbuf;
812 error = VOP_READLINK(ndp->ni_vp, &auio, cnp->cn_cred);
837 uma_zfree(namei_zone, cnp->cn_pnbuf);
838 cnp->cn_pnbuf = cp;
840 cnp->cn_pnbuf[linklen] = '\0';
853 if (cnp->cn_pnbuf[0] == '/') {
862 cnp->cn_flags &= ~LOCKLEAF;
863 if (cnp->cn_flags & GIANTHELD) {
865 cnp->cn_flags &= ~GIANTHELD;
875 uma_zfree(namei_zone, cnp->cn_pnbuf);
879 cnp->cn_flags &= ~HASBUF;