Lines Matching refs:cnp
2007 struct componentname *cnp = &nip->ni_cnd;
2018 MALLOC_ZONE(cnp->cn_pnbuf, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK);
2019 if (!cnp->cn_pnbuf)
2021 cnp->cn_pnlen = MAXPATHLEN;
2022 cnp->cn_flags |= HASBUF;
2025 cp = cnp->cn_pnbuf;
2029 cnp->cn_pnbuf[len] = '\0';
2036 if (cnp->cn_pnbuf)
2037 FREE_ZONE(cnp->cn_pnbuf, MAXPATHLEN, M_NAMEI);
2038 cnp->cn_flags &= ~HASBUF;
2060 struct componentname *cnp = &nip->ni_cnd;
2083 cnp->cn_flags |= RDONLY;
2085 cnp->cn_flags |= NOCROSSMOUNT;
2086 cnp->cn_nameptr = cnp->cn_pnbuf;
2095 cnp->cn_nameptr = cnp->cn_pnbuf;
2102 if (cnp->cn_flags & ISSYMLINK) {
2104 if ((cnp->cn_flags & FSNODELOCKHELD)) {
2105 cnp->cn_flags &= ~FSNODELOCKHELD;
2109 if (cnp->cn_flags & (LOCKPARENT | WANTPARENT))
2119 tmppn = cnp->cn_pnbuf;
2120 cnp->cn_pnbuf = NULL;
2121 cnp->cn_flags &= ~HASBUF;
2122 FREE_ZONE(tmppn, cnp->cn_pnlen, M_NAMEI);