Lines Matching refs:shmid_kernel

70 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
91 struct shmid_kernel *shp; in do_shm_rmid()
92 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
130 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) in shm_obtain_object()
137 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object()
140 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id) in shm_obtain_object_check()
147 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object_check()
154 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock()
165 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_lock()
168 static inline void shm_lock_by_ptr(struct shmid_kernel *ipcp) in shm_lock_by_ptr()
177 struct shmid_kernel *shp = ipc_rcu_to_struct(p); in shm_rcu_free()
183 static inline void shm_rmid(struct ipc_namespace *ns, struct shmid_kernel *s) in shm_rmid()
194 struct shmid_kernel *shp; in __shm_open()
228 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) in shm_destroy()
256 static bool shm_may_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) in shm_may_destroy()
273 struct shmid_kernel *shp; in shm_close()
303 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_try_destroy_orphaned()
333 struct shmid_kernel *shp, *n; in exit_shm()
523 struct shmid_kernel *shp; in newseg()
631 struct shmid_kernel *shp; in shm_security()
633 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_security()
643 struct shmid_kernel *shp; in shm_more_checks()
645 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_more_checks()
753 static void shm_add_rss_swap(struct shmid_kernel *shp, in shm_add_rss_swap()
793 struct shmid_kernel *shp; in shm_get_stat()
798 shp = container_of(ipc, struct shmid_kernel, shm_perm); in shm_get_stat()
816 struct shmid_kernel *shp; in shmctl_down()
834 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shmctl_down()
871 struct shmid_kernel *shp; in shmctl_nolock()
983 struct shmid_kernel *shp; in SYSCALL_DEFINE3()
1089 struct shmid_kernel *shp; in do_shmat()
1368 struct shmid_kernel *shp = it; in sysvipc_shm_proc_show()