Lines Matching refs:ipcp
480 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&sem_ids(ns), id); in sem_obtain_object() local
482 if (IS_ERR(ipcp)) in sem_obtain_object()
483 return ERR_CAST(ipcp); in sem_obtain_object()
485 return container_of(ipcp, struct sem_array, sem_perm); in sem_obtain_object()
491 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&sem_ids(ns), id); in sem_obtain_object_check() local
493 if (IS_ERR(ipcp)) in sem_obtain_object_check()
494 return ERR_CAST(ipcp); in sem_obtain_object_check()
496 return container_of(ipcp, struct sem_array, sem_perm); in sem_obtain_object_check()
591 static int sem_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params) in sem_more_checks() argument
595 sma = container_of(ipcp, struct sem_array, sem_perm); in sem_more_checks()
1143 static void freeary(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in freeary() argument
1147 struct sem_array *sma = container_of(ipcp, struct sem_array, sem_perm); in freeary()
1606 struct kern_ipc_perm *ipcp; in semctl_down() local
1611 ipcp = ipcctl_obtain_check(ns, &sem_ids(ns), semid, cmd, in semctl_down()
1613 if (IS_ERR(ipcp)) { in semctl_down()
1614 err = PTR_ERR(ipcp); in semctl_down()
1618 sma = container_of(ipcp, struct sem_array, sem_perm); in semctl_down()
1628 freeary(ns, ipcp); in semctl_down()
1632 err = ipc_update_perm(&semid64->sem_perm, ipcp); in semctl_down()
2452 struct kern_ipc_perm *ipcp = it; in sysvipc_sem_proc_show() local
2453 struct sem_array *sma = container_of(ipcp, struct sem_array, sem_perm); in sysvipc_sem_proc_show()