Lines Matching refs:shmid_kernel

52 struct shmid_kernel /* private to the kernel */
103 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
124 struct shmid_kernel *shp;
126 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
166 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id)
173 return container_of(ipcp, struct shmid_kernel, shm_perm);
176 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id)
183 return container_of(ipcp, struct shmid_kernel, shm_perm);
190 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id)
208 return container_of(ipcp, struct shmid_kernel, shm_perm);
222 static inline void shm_lock_by_ptr(struct shmid_kernel *ipcp)
232 struct shmid_kernel *shp = container_of(ptr, struct shmid_kernel,
242 static inline void shm_clist_rm(struct shmid_kernel *shp)
271 static inline void shm_rmid(struct shmid_kernel *s)
282 struct shmid_kernel *shp;
314 * shm_destroy - free the struct shmid_kernel
322 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp)
352 static bool shm_may_destroy(struct shmid_kernel *shp)
369 struct shmid_kernel *shp;
399 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm);
429 struct shmid_kernel *shp;
439 shp = list_first_entry(&task->sysvshm.shm_clist, struct shmid_kernel,
698 struct shmid_kernel *shp;
812 struct shmid_kernel *shp;
814 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
927 static void shm_add_rss_swap(struct shmid_kernel *shp,
968 struct shmid_kernel *shp;
973 shp = container_of(ipc, struct shmid_kernel, shm_perm);
990 struct shmid_kernel *shp;
1003 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
1078 struct shmid_kernel *shp;
1161 struct shmid_kernel *shp;
1515 struct shmid_kernel *shp;
1839 struct shmid_kernel *shp;
1842 shp = container_of(ipcp, struct shmid_kernel, shm_perm);