Searched refs:ipcp (Results 1 – 5 of 5) sorted by relevance
/ipc/ |
D | util.c | 173 struct kern_ipc_perm *ipcp; in ipc_findkey() local 175 ipcp = rhashtable_lookup_fast(&ids->key_ht, &key, in ipc_findkey() 177 if (!ipcp) in ipc_findkey() 181 ipc_lock_object(ipcp); in ipc_findkey() 182 return ipcp; in ipc_findkey() 365 struct kern_ipc_perm *ipcp, in ipc_check_perms() argument 371 if (ipcperms(ns, ipcp, params->flg)) in ipc_check_perms() 374 err = ops->associate(ipcp, params->flg); in ipc_check_perms() 376 err = ipcp->id; in ipc_check_perms() 399 struct kern_ipc_perm *ipcp; in ipcget_public() local [all …]
|
D | shm.c | 113 static void do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in do_shm_rmid() argument 117 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid() 158 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); in shm_obtain_object() local 160 if (IS_ERR(ipcp)) in shm_obtain_object() 161 return ERR_CAST(ipcp); in shm_obtain_object() 163 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object() 168 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&shm_ids(ns), id); in shm_obtain_object_check() local 170 if (IS_ERR(ipcp)) in shm_obtain_object_check() 171 return ERR_CAST(ipcp); in shm_obtain_object_check() 173 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object_check() [all …]
|
D | msg.c | 93 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&msg_ids(ns), id); in msq_obtain_object() local 95 if (IS_ERR(ipcp)) in msq_obtain_object() 96 return ERR_CAST(ipcp); in msq_obtain_object() 98 return container_of(ipcp, struct msg_queue, q_perm); in msq_obtain_object() 104 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&msg_ids(ns), id); in msq_obtain_object_check() local 106 if (IS_ERR(ipcp)) in msq_obtain_object_check() 107 return ERR_CAST(ipcp); in msq_obtain_object_check() 109 return container_of(ipcp, struct msg_queue, q_perm); in msq_obtain_object_check() 253 static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in freeque() argument 256 struct msg_queue *msq = container_of(ipcp, struct msg_queue, q_perm); in freeque() [all …]
|
D | sem.c | 458 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&sem_ids(ns), id); in sem_obtain_object() local 460 if (IS_ERR(ipcp)) in sem_obtain_object() 461 return ERR_CAST(ipcp); in sem_obtain_object() 463 return container_of(ipcp, struct sem_array, sem_perm); in sem_obtain_object() 469 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&sem_ids(ns), id); in sem_obtain_object_check() local 471 if (IS_ERR(ipcp)) in sem_obtain_object_check() 472 return ERR_CAST(ipcp); in sem_obtain_object_check() 474 return container_of(ipcp, struct sem_array, sem_perm); in sem_obtain_object_check() 569 static inline int sem_more_checks(struct kern_ipc_perm *ipcp, in sem_more_checks() argument 574 sma = container_of(ipcp, struct sem_array, sem_perm); in sem_more_checks() [all …]
|
D | util.h | 142 int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flg); 201 static inline int ipc_checkid(struct kern_ipc_perm *ipcp, int id) in ipc_checkid() argument 203 return ipcid_to_seqx(id) != ipcp->seq; in ipc_checkid()
|