Lines Matching defs:out
582 * @out: new style ipc permissions
585 * for returning to userspace (@out).
587 void kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out)
589 out->key = in->key;
590 out->uid = from_kuid_munged(current_user_ns(), in->uid);
591 out->gid = from_kgid_munged(current_user_ns(), in->gid);
592 out->cuid = from_kuid_munged(current_user_ns(), in->cuid);
593 out->cgid = from_kgid_munged(current_user_ns(), in->cgid);
594 out->mode = in->mode;
595 out->seq = in->seq;
601 * @out: old style ipc permissions
604 * object and store it into the @out pointer.
606 void ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out)
608 out->key = in->key;
609 SET_UID(out->uid, in->uid);
610 SET_GID(out->gid, in->gid);
611 SET_UID(out->cuid, in->cuid);
612 SET_GID(out->cgid, in->cgid);
613 out->mode = in->mode;
614 out->seq = in->seq;
629 struct kern_ipc_perm *out;
632 out = idr_find(&ids->ipcs_idr, idx);
633 if (!out)
636 return out;
652 struct kern_ipc_perm *out = ipc_obtain_object_idr(ids, id);
654 if (IS_ERR(out))
655 goto out;
657 if (ipc_checkid(out, id))
659 out:
660 return out;
685 * @out: the permission of the ipc to set.
687 int ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out)
694 out->uid = uid;
695 out->gid = gid;
696 out->mode = (out->mode & ~S_IRWXUGO)