Lines Matching refs: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
132 * @path: Path in procfs
162 * ipc_findkey - find a key in an ipc identifier set
187 * in the correct order.
269 * 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
536 /* is there some bit set in requested_mode but not in granted_mode? */
551 * @in: kernel permissions
554 * Turn the kernel object @in into a set of permissions descriptions
557 void kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out)
559 out->key = in->key;
560 out->uid = from_kuid_munged(current_user_ns(), in->uid);
561 out->gid = from_kgid_munged(current_user_ns(), in->gid);
562 out->cuid = from_kuid_munged(current_user_ns(), in->cuid);
563 out->cgid = from_kgid_munged(current_user_ns(), in->cgid);
564 out->mode = in->mode;
565 out->seq = in->seq;
570 * @in: new style ipc permissions
573 * Turn the new style permissions object @in into a compatibility
576 void ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out)
578 out->key = in->key;
579 SET_UID(out->uid, in->uid);
580 SET_GID(out->gid, in->gid);
581 SET_UID(out->cuid, in->cuid);
582 SET_GID(out->cgid, in->cgid);
583 out->mode = in->mode;
584 out->seq = in->seq;
592 * Look for an id in the ipc ids idr and return associated ipc object.
657 * @in: the permission given as input.
660 int ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out)
662 kuid_t uid = make_kuid(current_user_ns(), in->uid);
663 kgid_t gid = make_kgid(current_user_ns(), in->gid);
670 out->mode = (out->mode & ~S_IRWXUGO) | (in->mode & S_IRWXUGO);
688 * - retrieves the ipc object with the given id in the given table.
849 /* Release the lock we took in start() */