Lines Matching refs:q_perm

72 #define msg_unlock(msq)		ipc_unlock(&(msq)->q_perm)
154 return container_of(ipcp, struct msg_queue, q_perm); in msg_lock()
165 return container_of(ipcp, struct msg_queue, q_perm); in msg_lock_check()
170 ipc_rmid(&msg_ids(ns), &s->q_perm); in msg_rmid()
191 msq->q_perm.mode = msgflg & S_IRWXUGO; in newque()
192 msq->q_perm.key = key; in newque()
194 msq->q_perm.security = NULL; in newque()
204 id = ipc_addid(&msg_ids(ns), &msq->q_perm, ns->msg_ctlmni); in newque()
222 return msq->q_perm.id; in newque()
282 struct msg_queue *msq = container_of(ipcp, struct msg_queue, q_perm); in freeque()
307 struct msg_queue *msq = container_of(ipcp, struct msg_queue, q_perm); in msg_security()
429 msq = container_of(ipcp, struct msg_queue, q_perm); in msgctl_down()
534 success_return = msq->q_perm.id; in SYSCALL_DEFINE3()
542 if (ipcperms(ns, &msq->q_perm, S_IRUGO)) in SYSCALL_DEFINE3()
551 kernel_to_ipc64_perm(&msq->q_perm, &tbuf.msg_perm); in SYSCALL_DEFINE3()
667 if (ipcperms(ns, &msq->q_perm, S_IWUGO)) in do_msgsnd()
689 ipc_lock_by_ptr(&msq->q_perm); in do_msgsnd()
691 if (msq->q_perm.deleted) { in do_msgsnd()
777 if (ipcperms(ns, &msq->q_perm, S_IRUGO)) in do_msgrcv()
876 ipc_lock_by_ptr(&msq->q_perm); in do_msgrcv()
929 msq->q_perm.key, in sysvipc_msg_proc_show()
930 msq->q_perm.id, in sysvipc_msg_proc_show()
931 msq->q_perm.mode, in sysvipc_msg_proc_show()
936 msq->q_perm.uid, in sysvipc_msg_proc_show()
937 msq->q_perm.gid, in sysvipc_msg_proc_show()
938 msq->q_perm.cuid, in sysvipc_msg_proc_show()
939 msq->q_perm.cgid, in sysvipc_msg_proc_show()