Lines Matching refs:cnp
553 * 'dvp'; this addition is done using the component name given in 'cnp'.
555 * credentials of the caller (through 'cnp'), the group is set based on
563 struct componentname *cnp, char *target)
573 MPASS(cnp->cn_flags & HASBUF);
597 error = tmpfs_alloc_node(tmp, vap->va_type, cnp->cn_cred->cr_uid,
603 error = tmpfs_alloc_dirent(tmp, node, cnp->cn_nameptr, cnp->cn_namelen,
621 if (cnp->cn_flags & ISWHITEOUT)
622 tmpfs_dir_whiteout_remove(dvp, cnp);
680 * 'cnp' describes the name of the entry to look for. Note that the .
688 struct componentname *cnp)
693 MPASS(IMPLIES(cnp->cn_namelen == 1, cnp->cn_nameptr[0] != '.'));
694 MPASS(IMPLIES(cnp->cn_namelen == 2, !(cnp->cn_nameptr[0] == '.' &&
695 cnp->cn_nameptr[1] == '.')));
702 MPASS(cnp->cn_namelen < 0xffff);
703 if (de->td_namelen == (uint16_t)cnp->cn_namelen &&
704 bcmp(de->td_name, cnp->cn_nameptr, de->td_namelen) == 0) {
949 tmpfs_dir_whiteout_add(struct vnode *dvp, struct componentname *cnp)
955 cnp->cn_nameptr, cnp->cn_namelen, &de);
963 tmpfs_dir_whiteout_remove(struct vnode *dvp, struct componentname *cnp)
967 de = tmpfs_dir_lookup(VP_TO_TMPFS_DIR(dvp), NULL, cnp);