Lines Matching refs:vap
201 vn_open_auth_do_create(struct nameidata *ndp, struct vnode_attr *vap, int fmode, boolean_t *did_create, boolean_t *did_open, vfs_context_t ctx)
212 VATTR_SET(vap, va_type, VREG);
214 vap->va_vaflags |= VA_EXCLUSIVE;
218 if ((error = vn_authorize_create(dvp, &ndp->ni_cnd, vap, ctx, NULL)) != 0)
226 if ((error = vn_authorize_create(dvp, &ndp->ni_cnd, vap, ctx, NULL)) != 0)
230 error = vn_create(dvp, &ndp->ni_vp, ndp, vap, VN_CREATE_DOOPEN, fmode, &status, ctx);
308 * pointed to by ndp, fmodep, and vap as necessary to perform the requested
316 * vap A pointer to the vnode attribute
326 * Notes: The kauth_filesec_t in 'vap', if any, is in host byte order.
341 * The contents of '*vap' will be modified as necessary to
352 vn_open_auth(struct nameidata *ndp, int *fmodep, struct vnode_attr *vap)
411 if (vap == NULL) {
420 error = vn_open_auth_do_create(ndp, vap, fmode, &did_create, &did_open, ctx);
576 if (!(VATTR_IS_ACTIVE (vap, va_dataprotect_flags)) ||
577 ((vap->va_dataprotect_flags & VA_DP_RAWENCRYPTED) == 0)) {