Lines Matching refs:ns
40 struct ns_common ns; member
51 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument
53 if (ns != &init_pid_ns) in get_pid_ns()
54 refcount_inc(&ns->ns.count); in get_pid_ns()
55 return ns; in get_pid_ns()
59 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() argument
63 for (; ns; ns = ns->parent) in pidns_memfd_noexec_scope()
64 scope = max(scope, READ_ONCE(ns->memfd_noexec_scope)); in pidns_memfd_noexec_scope()
69 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() argument
76 struct user_namespace *user_ns, struct pid_namespace *ns);
79 extern void put_pid_ns(struct pid_namespace *ns);
84 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument
86 return ns; in get_pid_ns()
89 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() argument
95 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns() argument
98 ns = ERR_PTR(-EINVAL); in copy_pid_ns()
99 return ns; in copy_pid_ns()
102 static inline void put_pid_ns(struct pid_namespace *ns) in put_pid_ns() argument
106 static inline void zap_pid_ns_processes(struct pid_namespace *ns) in zap_pid_ns_processes() argument