Lines Matching refs:cnp
595 struct componentname *cnp = &ndp->ni_cnd;
596 int lockleaf = (cnp->cn_flags & LOCKLEAF) != 0;
599 cnp->cn_flags |= NOMACCHECK;
600 cnp->cn_pnbuf = uma_zalloc(namei_zone, M_WAITOK);
607 tocp = cnp->cn_pnbuf;
654 cnp->cn_flags |= RDONLY;
674 fromcp = cnp->cn_pnbuf;
714 uma_zfree(namei_zone, cnp->cn_pnbuf);
715 cnp->cn_pnbuf = cp;
718 ndp->ni_pathlen = (tocp - cnp->cn_pnbuf) + 1;
725 if (cnp->cn_pnbuf[0] == '/')
728 cnp->cn_flags |= NOCROSSMOUNT;
736 cnp->cn_thread = curthread;
741 cnp->cn_flags |= LOCKLEAF;
743 cnp->cn_nameptr = cnp->cn_pnbuf;
761 if ((cnp->cn_flags & ISSYMLINK) == 0) {
762 if (cnp->cn_flags & (SAVENAME | SAVESTART))
763 cnp->cn_flags |= HASBUF;
765 uma_zfree(namei_zone, cnp->cn_pnbuf);
774 if ((cnp->cn_flags & LOCKPARENT) && ndp->ni_pathlen == 1)
788 cp = cnp->cn_pnbuf;
798 error = VOP_READLINK(ndp->ni_vp, &auio, cnp->cn_cred);
823 uma_zfree(namei_zone, cnp->cn_pnbuf);
824 cnp->cn_pnbuf = cp;
826 cnp->cn_pnbuf[linklen] = '\0';
839 if (cnp->cn_pnbuf[0] == '/') {
848 cnp->cn_flags &= ~LOCKLEAF;
857 uma_zfree(namei_zone, cnp->cn_pnbuf);
861 cnp->cn_flags &= ~HASBUF;