Lines Matching refs:ipcp
104 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&msg_ids(ns), id); in msq_obtain_object() local
106 if (IS_ERR(ipcp)) in msq_obtain_object()
107 return ERR_CAST(ipcp); in msq_obtain_object()
109 return container_of(ipcp, struct msg_queue, q_perm); in msq_obtain_object()
115 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&msg_ids(ns), id); in msq_obtain_object_check() local
117 if (IS_ERR(ipcp)) in msq_obtain_object_check()
118 return ERR_CAST(ipcp); in msq_obtain_object_check()
120 return container_of(ipcp, struct msg_queue, q_perm); in msq_obtain_object_check()
273 static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in freeque() argument
278 struct msg_queue *msq = container_of(ipcp, struct msg_queue, q_perm); in freeque()
404 struct kern_ipc_perm *ipcp; in msgctl_down() local
411 ipcp = ipcctl_obtain_check(ns, &msg_ids(ns), msqid, cmd, in msgctl_down()
413 if (IS_ERR(ipcp)) { in msgctl_down()
414 err = PTR_ERR(ipcp); in msgctl_down()
418 msq = container_of(ipcp, struct msg_queue, q_perm); in msgctl_down()
428 freeque(ns, ipcp); in msgctl_down()
441 err = ipc_update_perm(perm, ipcp); in msgctl_down()
1345 struct kern_ipc_perm *ipcp = it; in sysvipc_msg_proc_show() local
1346 struct msg_queue *msq = container_of(ipcp, struct msg_queue, q_perm); in sysvipc_msg_proc_show()