Lines Matching refs:ipcp
79 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&msg_ids(ns), id); in msq_obtain_object() local
81 if (IS_ERR(ipcp)) in msq_obtain_object()
82 return ERR_CAST(ipcp); in msq_obtain_object()
84 return container_of(ipcp, struct msg_queue, q_perm); in msq_obtain_object()
90 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&msg_ids(ns), id); in msq_obtain_object_check() local
92 if (IS_ERR(ipcp)) in msq_obtain_object_check()
93 return ERR_CAST(ipcp); in msq_obtain_object_check()
95 return container_of(ipcp, struct msg_queue, q_perm); in msq_obtain_object_check()
212 static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in freeque() argument
215 struct msg_queue *msq = container_of(ipcp, struct msg_queue, q_perm); in freeque()
234 static inline int msg_security(struct kern_ipc_perm *ipcp, int msgflg) in msg_security() argument
236 struct msg_queue *msq = container_of(ipcp, struct msg_queue, q_perm); in msg_security()
342 struct kern_ipc_perm *ipcp; in msgctl_down() local
355 ipcp = ipcctl_pre_down_nolock(ns, &msg_ids(ns), msqid, cmd, in msgctl_down()
357 if (IS_ERR(ipcp)) { in msgctl_down()
358 err = PTR_ERR(ipcp); in msgctl_down()
362 msq = container_of(ipcp, struct msg_queue, q_perm); in msgctl_down()
372 freeque(ns, ipcp); in msgctl_down()
382 err = ipc_update_perm(&msqid64.msg_perm, ipcp); in msgctl_down()