Lines Matching defs:cnp
1196 * 'dvp'; this addition is done using the component name given in 'cnp'.
1198 * credentials of the caller (through 'cnp'), the group is set based on
1206 struct componentname *cnp, const char *target)
1239 cnp->cn_cred->cr_uid, dnode->tn_gid, vap->va_mode, parent,
1245 error = tmpfs_alloc_dirent(tmp, node, cnp->cn_nameptr, cnp->cn_namelen,
1263 if (cnp->cn_flags & ISWHITEOUT)
1264 tmpfs_dir_whiteout_remove(dvp, cnp);
1375 * 'cnp' describes the name of the entry to look for. Note that the .
1383 struct componentname *cnp)
1389 MPASS(IMPLIES(cnp->cn_namelen == 1, cnp->cn_nameptr[0] != '.'));
1390 MPASS(IMPLIES(cnp->cn_namelen == 2, !(cnp->cn_nameptr[0] == '.' &&
1391 cnp->cn_nameptr[1] == '.')));
1394 hash = tmpfs_dirent_hash(cnp->cn_nameptr, cnp->cn_namelen);
1399 if (TMPFS_DIRENT_MATCHES(de, cnp->cn_nameptr,
1400 cnp->cn_namelen))
1404 if (!TMPFS_DIRENT_MATCHES(de, cnp->cn_nameptr,
1405 cnp->cn_namelen))
1832 tmpfs_dir_whiteout_add(struct vnode *dvp, struct componentname *cnp)
1839 cnp->cn_nameptr, cnp->cn_namelen, &de);
1849 tmpfs_dir_whiteout_remove(struct vnode *dvp, struct componentname *cnp)
1855 de = tmpfs_dir_lookup(dnode, NULL, cnp);