Lines Matching refs:ns
80 struct ns_common ns; member
87 extern void shm_destroy_orphaned(struct ipc_namespace *ns);
89 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() argument
93 extern int mq_init_ns(struct ipc_namespace *ns);
128 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns() argument
133 struct user_namespace *user_ns, struct ipc_namespace *ns);
135 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument
137 if (ns) in get_ipc_ns()
138 refcount_inc(&ns->ns.count); in get_ipc_ns()
139 return ns; in get_ipc_ns()
142 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero() argument
144 if (ns) { in get_ipc_ns_not_zero()
145 if (refcount_inc_not_zero(&ns->ns.count)) in get_ipc_ns_not_zero()
146 return ns; in get_ipc_ns_not_zero()
152 extern void put_ipc_ns(struct ipc_namespace *ns);
155 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() argument
160 return ns; in copy_ipcs()
163 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument
165 return ns; in get_ipc_ns()
168 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero() argument
170 return ns; in get_ipc_ns_not_zero()
173 static inline void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns() argument
180 void retire_mq_sysctls(struct ipc_namespace *ns);
181 bool setup_mq_sysctls(struct ipc_namespace *ns);
185 static inline void retire_mq_sysctls(struct ipc_namespace *ns) in retire_mq_sysctls() argument
189 static inline bool setup_mq_sysctls(struct ipc_namespace *ns) in setup_mq_sysctls() argument
198 bool setup_ipc_sysctls(struct ipc_namespace *ns);
199 void retire_ipc_sysctls(struct ipc_namespace *ns);
203 static inline void retire_ipc_sysctls(struct ipc_namespace *ns) in retire_ipc_sysctls() argument
207 static inline bool setup_ipc_sysctls(struct ipc_namespace *ns) in setup_ipc_sysctls() argument