Lines Matching defs:ns
52 struct ipc_namespace *ns; member
62 #define shm_ids(ns) ((ns)->ids[IPC_SHM_IDS]) argument
75 void shm_init_ns(struct ipc_namespace *ns) in shm_init_ns()
89 static void do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in do_shm_rmid()
104 void shm_exit_ns(struct ipc_namespace *ns) in shm_exit_ns()
130 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) 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()
154 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock()
183 static inline void shm_rmid(struct ipc_namespace *ns, struct shmid_kernel *s) in shm_rmid()
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()
274 struct ipc_namespace *ns = sfd->ns; in shm_close() local
301 struct ipc_namespace *ns = data; in shm_try_destroy_orphaned() local
321 void shm_destroy_orphaned(struct ipc_namespace *ns) in shm_destroy_orphaned()
332 struct ipc_namespace *ns = task->nsproxy->ipc_ns; in exit_shm() local
517 static int newseg(struct ipc_namespace *ns, struct ipc_params *params) in newseg()
654 struct ipc_namespace *ns; in SYSCALL_DEFINE3() local
780 static void shm_get_stat(struct ipc_namespace *ns, unsigned long *rss, in shm_get_stat()
811 static int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, in shmctl_down()
867 static int shmctl_nolock(struct ipc_namespace *ns, int shmid, in shmctl_nolock()
985 struct ipc_namespace *ns; in SYSCALL_DEFINE3() local
1097 struct ipc_namespace *ns; in do_shmat() local