Lines Matching defs:in

8  *            Occurs in several places in the IPC code.
22 * obtain the ipc object (kern_ipc_perm) by looking up the id in an idr
39 * - creating, removing and iterating the existing entries in ipc
133 * @path: Path in procfs
163 * ipc_findkey - find a key in an ipc identifier set
188 * in the correct order.
271 * is returned. The 'new' entry is returned in a locked state on success.
358 * when the key is not IPC_PRIVATE and that key already exists in the
459 * The function determines the highest assigned index in @ids. It is intended
566 /* is there some bit set in requested_mode but not in granted_mode? */
581 * @in: kernel permissions
584 * Turn the kernel object @in into a set of permissions descriptions
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;
600 * @in: new style ipc permissions
603 * Turn the new style permissions object @in into a compatibility
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;
622 * Look for an id in the ipc ids idr and return associated ipc object.
684 * @in: the permission given as input.
687 int ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out)
689 kuid_t uid = make_kuid(current_user_ns(), in->uid);
690 kgid_t gid = make_kgid(current_user_ns(), in->gid);
697 | (in->mode & S_IRWXUGO);
715 * - retrieves the ipc object with the given id in the given table.
876 /* Release the lock we took in start() */