Lines Matching refs:ipcp

123 static void do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp)
127 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
169 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&shm_ids(ns), id);
171 if (IS_ERR(ipcp))
172 return ERR_CAST(ipcp);
174 return container_of(ipcp, struct shmid_kernel, shm_perm);
179 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&shm_ids(ns), id);
181 if (IS_ERR(ipcp))
182 return ERR_CAST(ipcp);
184 return container_of(ipcp, struct shmid_kernel, shm_perm);
193 struct kern_ipc_perm *ipcp;
196 ipcp = ipc_obtain_object_idr(&shm_ids(ns), id);
197 if (IS_ERR(ipcp))
200 ipc_lock_object(ipcp);
207 if (ipc_valid_object(ipcp)) {
209 return container_of(ipcp, struct shmid_kernel, shm_perm);
212 ipc_unlock_object(ipcp);
213 ipcp = ERR_PTR(-EIDRM);
220 return ERR_CAST(ipcp);
223 static inline void shm_lock_by_ptr(struct shmid_kernel *ipcp)
226 ipc_lock_object(&ipcp->shm_perm);
412 struct kern_ipc_perm *ipcp = p;
413 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm);
814 * Called with shm_ids.rwsem and ipcp locked.
816 static int shm_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params)
820 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
995 struct kern_ipc_perm *ipcp;
1002 ipcp = ipcctl_obtain_check(ns, &shm_ids(ns), shmid, cmd,
1004 if (IS_ERR(ipcp)) {
1005 err = PTR_ERR(ipcp);
1009 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
1019 do_shm_rmid(ns, ipcp);
1023 err = ipc_update_perm(&shmid64->shm_perm, ipcp);
1843 struct kern_ipc_perm *ipcp = it;
1847 shp = container_of(ipcp, struct shmid_kernel, shm_perm);