Lines Matching refs:shmid_kernel

53 struct shmid_kernel /* private to the kernel */  struct
104 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
125 struct shmid_kernel *shp; in do_shm_rmid()
127 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
167 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) in shm_obtain_object()
174 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object()
177 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id) in shm_obtain_object_check()
184 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object_check()
191 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock()
209 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_lock()
223 static inline void shm_lock_by_ptr(struct shmid_kernel *ipcp) in shm_lock_by_ptr()
233 struct shmid_kernel *shp = container_of(ptr, struct shmid_kernel, in shm_rcu_free()
243 static inline void shm_clist_rm(struct shmid_kernel *shp) in shm_clist_rm()
272 static inline void shm_rmid(struct shmid_kernel *s) in shm_rmid()
281 struct shmid_kernel *shp; in __shm_open()
329 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) in shm_destroy()
356 static bool shm_may_destroy(struct shmid_kernel *shp) in shm_may_destroy()
371 struct shmid_kernel *shp; in __shm_close()
413 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_try_destroy_orphaned()
443 struct shmid_kernel *shp; in exit_shm()
453 shp = list_first_entry(&task->sysvshm.shm_clist, struct shmid_kernel, in exit_shm()
703 struct shmid_kernel *shp; in newseg()
814 struct shmid_kernel *shp; in shm_more_checks()
816 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_more_checks()
929 static void shm_add_rss_swap(struct shmid_kernel *shp, in shm_add_rss_swap()
970 struct shmid_kernel *shp; in shm_get_stat()
975 shp = container_of(ipc, struct shmid_kernel, shm_perm); in shm_get_stat()
992 struct shmid_kernel *shp; in shmctl_down()
1005 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shmctl_down()
1080 struct shmid_kernel *shp; in shmctl_stat()
1163 struct shmid_kernel *shp; in shmctl_do_lock()
1517 struct shmid_kernel *shp; in do_shmat()
1840 struct shmid_kernel *shp; in sysvipc_shm_proc_show()
1843 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in sysvipc_shm_proc_show()