Lines Matching refs:shmid_kernel

52 struct shmid_kernel /* private to the kernel */  struct
103 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
124 struct shmid_kernel *shp; in do_shm_rmid()
126 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
166 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) in shm_obtain_object()
173 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object()
176 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id) in shm_obtain_object_check()
183 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object_check()
190 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock()
208 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_lock()
222 static inline void shm_lock_by_ptr(struct shmid_kernel *ipcp) in shm_lock_by_ptr()
232 struct shmid_kernel *shp = container_of(ptr, struct shmid_kernel, in shm_rcu_free()
242 static inline void shm_clist_rm(struct shmid_kernel *shp) in shm_clist_rm()
271 static inline void shm_rmid(struct shmid_kernel *s) in shm_rmid()
280 struct shmid_kernel *shp; in __shm_open()
328 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) in shm_destroy()
355 static bool shm_may_destroy(struct shmid_kernel *shp) in shm_may_destroy()
370 struct shmid_kernel *shp; in __shm_close()
412 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_try_destroy_orphaned()
442 struct shmid_kernel *shp; in exit_shm()
452 shp = list_first_entry(&task->sysvshm.shm_clist, struct shmid_kernel, in exit_shm()
711 struct shmid_kernel *shp; in newseg()
822 struct shmid_kernel *shp; in shm_more_checks()
824 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_more_checks()
937 static void shm_add_rss_swap(struct shmid_kernel *shp, in shm_add_rss_swap()
978 struct shmid_kernel *shp; in shm_get_stat()
983 shp = container_of(ipc, struct shmid_kernel, shm_perm); in shm_get_stat()
1000 struct shmid_kernel *shp; in shmctl_down()
1013 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shmctl_down()
1088 struct shmid_kernel *shp; in shmctl_stat()
1171 struct shmid_kernel *shp; in shmctl_do_lock()
1525 struct shmid_kernel *shp; in do_shmat()
1848 struct shmid_kernel *shp; in sysvipc_shm_proc_show()
1851 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in sysvipc_shm_proc_show()