Lines Matching refs:shmid_kernel

52 struct shmid_kernel {

93 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
114 struct shmid_kernel *shp;
116 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
159 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id)
167 return container_of(ipcp, struct shmid_kernel, shm_perm);
170 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id)
178 return container_of(ipcp, struct shmid_kernel, shm_perm);
185 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id)
204 return container_of(ipcp, struct shmid_kernel, shm_perm);
218 static inline void shm_lock_by_ptr(struct shmid_kernel *ipcp)
227 struct shmid_kernel *shp = container_of(ptr, struct shmid_kernel, shm_perm);
236 static inline void shm_clist_rm(struct shmid_kernel *shp)
265 static inline void shm_rmid(struct shmid_kernel *s)
275 struct shmid_kernel *shp;
307 * shm_destroy - free the struct shmid_kernel
315 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp)
345 static bool shm_may_destroy(struct shmid_kernel *shp)
362 struct shmid_kernel *shp;
393 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm);
425 struct shmid_kernel *shp;
435 shp = list_first_entry(&task->sysvshm.shm_clist, struct shmid_kernel,
697 struct shmid_kernel *shp;
816 struct shmid_kernel *shp;
818 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
931 static void shm_add_rss_swap(struct shmid_kernel *shp, unsigned long *rss_add, unsigned long *swp_add)
970 struct shmid_kernel *shp;
976 shp = container_of(ipc, struct shmid_kernel, shm_perm);
992 struct shmid_kernel *shp;
1004 shp = container_of(ipcp, struct shmid_kernel, shm_perm);
1080 struct shmid_kernel *shp;
1165 struct shmid_kernel *shp;
1532 struct shmid_kernel *shp;
1866 struct shmid_kernel *shp;
1869 shp = container_of(ipcp, struct shmid_kernel, shm_perm);