Lines Matching refs:shmid_kernel

54 struct shmid_kernel /* private to the kernel */  struct
105 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
126 struct shmid_kernel *shp; in do_shm_rmid()
128 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
169 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) in shm_obtain_object()
176 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object()
179 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id) in shm_obtain_object_check()
186 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object_check()
193 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock()
211 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_lock()
225 static inline void shm_lock_by_ptr(struct shmid_kernel *ipcp) in shm_lock_by_ptr()
235 struct shmid_kernel *shp = container_of(ptr, struct shmid_kernel, in shm_rcu_free()
245 static inline void shm_clist_rm(struct shmid_kernel *shp) in shm_clist_rm()
274 static inline void shm_rmid(struct shmid_kernel *s) in shm_rmid()
283 struct shmid_kernel *shp; in __shm_open()
331 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) in shm_destroy()
358 static bool shm_may_destroy(struct shmid_kernel *shp) in shm_may_destroy()
373 struct shmid_kernel *shp; in __shm_close()
415 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_try_destroy_orphaned()
448 struct shmid_kernel *shp; in exit_shm()
458 shp = list_first_entry(&task->sysvshm.shm_clist, struct shmid_kernel, in exit_shm()
708 struct shmid_kernel *shp; in newseg()
819 struct shmid_kernel *shp; in shm_more_checks()
821 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shm_more_checks()
934 static void shm_add_rss_swap(struct shmid_kernel *shp, in shm_add_rss_swap()
975 struct shmid_kernel *shp; in shm_get_stat()
980 shp = container_of(ipc, struct shmid_kernel, shm_perm); in shm_get_stat()
997 struct shmid_kernel *shp; in shmctl_down()
1010 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in shmctl_down()
1085 struct shmid_kernel *shp; in shmctl_stat()
1168 struct shmid_kernel *shp; in shmctl_do_lock()
1522 struct shmid_kernel *shp; in do_shmat()
1845 struct shmid_kernel *shp; in sysvipc_shm_proc_show()
1848 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in sysvipc_shm_proc_show()