Lines Matching refs:ns
73 struct ns_common ns; member
80 extern void shm_destroy_orphaned(struct ipc_namespace *ns);
82 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() argument
86 extern int mq_init_ns(struct ipc_namespace *ns);
121 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns() argument
126 struct user_namespace *user_ns, struct ipc_namespace *ns);
128 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument
130 if (ns) in get_ipc_ns()
131 refcount_inc(&ns->count); in get_ipc_ns()
132 return ns; in get_ipc_ns()
135 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero() argument
137 if (ns) { in get_ipc_ns_not_zero()
138 if (refcount_inc_not_zero(&ns->count)) in get_ipc_ns_not_zero()
139 return ns; in get_ipc_ns_not_zero()
145 extern void put_ipc_ns(struct ipc_namespace *ns);
148 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() argument
153 return ns; in copy_ipcs()
156 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument
158 return ns; in get_ipc_ns()
161 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero() argument
163 return ns; in get_ipc_ns_not_zero()
166 static inline void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns() argument