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)
280 struct shmid_kernel *shp;
320 * shm_destroy - free the struct shmid_kernel
328 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp)
355 static bool shm_may_destroy(struct shmid_kernel *shp)
370 struct shmid_kernel *shp;
412 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm);
442 struct shmid_kernel *shp;
452 shp = list_first_entry(&task->sysvshm.shm_clist, struct shmid_kernel,
711 struct shmid_kernel *shp;
822 struct shmid_kernel *shp;
824 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
937 static void shm_add_rss_swap(struct shmid_kernel *shp,
978 struct shmid_kernel *shp;
983 shp = container_of(ipc, struct shmid_kernel, shm_perm);
1000 struct shmid_kernel *shp;
1013 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
1088 struct shmid_kernel *shp;
1171 struct shmid_kernel *shp;
1525 struct shmid_kernel *shp;
1848 struct shmid_kernel *shp;
1851 shp = container_of(ipcp, struct shmid_kernel, shm_perm);