Lines Matching refs:vap

2964 open1(vfs_context_t ctx, struct nameidata *ndp, int uflags, struct vnode_attr *vap, int32_t *retval)
2987 AUDIT_ARG(mode, vap->va_mode);
3014 if ((error = vn_open_auth(ndp, &flags, vap))) {
3051 if (VATTR_IS_ACTIVE (vap, va_dataprotect_flags)) {
3052 if (vap->va_dataprotect_flags & VA_DP_RAWENCRYPTED) {
3297 static int mkfifo1(vfs_context_t ctx, user_addr_t upath, struct vnode_attr *vap);
3405 mkfifo1(vfs_context_t ctx, user_addr_t upath, struct vnode_attr *vap)
3424 VATTR_SET(vap, va_type, VFIFO);
3426 if ((error = vn_authorize_create(dvp, &nd.ni_cnd, vap, ctx, NULL)) != 0)
3429 error = vn_create(dvp, &vp, &nd, vap, 0, 0, NULL, ctx);
3963 struct vnode_attr *vap = NULL;
4031 vap = &va;
4053 error = vn_remove(dvp, &ndp->ni_vp, ndp, flags, vap, ctx);
4099 } else if (vap) {
4100 vnode_get_fse_info_from_vap(vp, &finfo, vap);
5137 chmod2(vfs_context_t ctx, vnode_t vp, struct vnode_attr *vap)
5142 AUDIT_ARG(mode, vap->va_mode);
5153 if (VATTR_IS_ACTIVE(vap, va_mode) &&
5154 (error = mac_vnode_check_setmode(ctx, vp, (mode_t)vap->va_mode)) != 0)
5159 if (((error = vnode_authattr(vp, vap, &action, ctx)) != 0) ||
5166 error = vnode_setattr(vp, vap, ctx);
5180 chmod1(vfs_context_t ctx, user_addr_t path, struct vnode_attr *vap)
5189 error = chmod2(ctx, nd.ni_vp, vap);
5276 fchmod1(__unused proc_t p, int fd, struct vnode_attr *vap)
5291 error = chmod2(vfs_context_current(), vp, vap);
6470 mkdir1(vfs_context_t ctx, user_addr_t path, struct vnode_attr *vap)
6478 AUDIT_ARG(mode, vap->va_mode);
6498 VATTR_SET(vap, va_type, VDIR);
6507 if ((error = vn_authorize_mkdir(dvp, &nd.ni_cnd, vap, ctx, NULL)) != 0) {
6537 if ((error = vn_create(dvp, &vp, &nd, vap, 0, 0, NULL, ctx)) != 0) {
6644 struct vnode_attr *vap = NULL;
6660 vap = NULL;
6718 vap = &va;
6740 error = vn_rmdir(dvp, &vp, &nd, vap, ctx);
6768 error = vn_rmdir(dvp, &vp, &nd, vap, ctx);
6791 if (vap) {
6792 vnode_get_fse_info_from_vap(vp, &finfo, vap);