Lines Matching refs:shmid_kernel
52 struct shmid_kernel /* private to the kernel */ struct
94 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
115 struct shmid_kernel *shp; in do_shm_rmid()
117 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
156 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) in shm_obtain_object()
163 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object()
166 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id) in shm_obtain_object_check()
173 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object_check()
180 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock()
198 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_lock()
212 static inline void shm_lock_by_ptr(struct shmid_kernel *ipcp) in shm_lock_by_ptr()
222 struct shmid_kernel *shp = container_of(ptr, struct shmid_kernel, in shm_rcu_free()
228 static inline void shm_rmid(struct ipc_namespace *ns, struct shmid_kernel *s) in shm_rmid()
239 struct shmid_kernel *shp; in __shm_open()
279 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) in shm_destroy()
309 static bool shm_may_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) in shm_may_destroy()
326 struct shmid_kernel *shp; in shm_close()
356 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_try_destroy_orphaned()
386 struct shmid_kernel *shp, *n; in exit_shm()
606 struct shmid_kernel *shp; in newseg()
717 struct shmid_kernel *shp; in shm_more_checks()
719 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_more_checks()
832 static void shm_add_rss_swap(struct shmid_kernel *shp, in shm_add_rss_swap()
873 struct shmid_kernel *shp; in shm_get_stat()
878 shp = container_of(ipc, struct shmid_kernel, shm_perm); in shm_get_stat()
895 struct shmid_kernel *shp; in shmctl_down()
908 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shmctl_down()
983 struct shmid_kernel *shp; in shmctl_stat()
1066 struct shmid_kernel *shp; in shmctl_do_lock()
1421 struct shmid_kernel *shp; in do_shmat()
1744 struct shmid_kernel *shp; in sysvipc_shm_proc_show()
1747 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in sysvipc_shm_proc_show()