Lines Matching defs:cnp

4481 	struct componentname *cnp;
4516 cnp = param->vnfs_cnp;
4665 if (cnp) {
4673 vp->v_name = cache_enter_create(dvp, vp, cnp);
4675 vp->v_name = vfs_addname(cnp->cn_nameptr, cnp->cn_namelen, cnp->cn_hash, 0);
4677 if ((cnp->cn_flags & UNIONCREATED) == UNIONCREATED)
5113 * cnp Component name pointer from the namei
5128 * *cnp May be modified by the underlying VFS.
5138 * Modification of '*cnp' and '*vap' by the underlying VFS is
5152 struct componentname *cnp;
5155 cnp = &ndp->ni_cnd;
5159 KAUTH_DEBUG("%p CREATE - '%s'", dvp, cnp->cn_nameptr);
5194 error = VNOP_MKNOD(dvp, vpp, cnp, vap, ctx);
5209 error = vnode_label(vnode_mount(vp), dvp, vp, cnp, VNODE_LABEL_CREATE, ctx);
5361 vn_authorize_unlink(vnode_t dvp, vnode_t vp, struct componentname *cnp, vfs_context_t ctx, __unused void *reserved)
5377 error = mac_vnode_check_unlink(ctx, dvp, vp, cnp);
5386 vn_authorize_open_existing(vnode_t vp, struct componentname *cnp, int fmode, vfs_context_t ctx, void *reserved)
5392 if (cnp->cn_ndp == NULL) {
5425 if ((cnp->cn_ndp->ni_flag & NAMEI_TRAILINGSLASH)) {
5483 vn_authorize_create(vnode_t dvp, struct componentname *cnp, struct vnode_attr *vap, vfs_context_t ctx, void *reserved)
5488 if (cnp->cn_ndp == NULL) {
5496 if (cnp->cn_ndp->ni_flag & NAMEI_UNFINISHED) {
5497 error = lookup_validate_creation_path(cnp->cn_ndp);
5503 error = mac_vnode_check_create(ctx, dvp, cnp, vap);
5648 vn_authorize_mkdir(vnode_t dvp, struct componentname *cnp, struct vnode_attr *vap, vfs_context_t ctx, void *reserved)
5657 if (cnp->cn_ndp == NULL) {
5662 error = lookup_validate_creation_path(cnp->cn_ndp);
5669 dvp, cnp, vap);
5683 vn_authorize_rmdir(vnode_t dvp, vnode_t vp, struct componentname *cnp, vfs_context_t ctx, void *reserved)
5707 vp, cnp);
8333 vfs_istraditionaltrigger(enum path_operation op, const struct componentname *cnp)
8335 if (cnp->cn_flags & ISLASTCN)