Lines Matching refs:ns
41 struct ns_common ns; member
57 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument
59 if (ns != &init_pid_ns) in get_pid_ns()
60 refcount_inc(&ns->ns.count); in get_pid_ns()
61 return ns; in get_pid_ns()
65 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() argument
69 for (; ns; ns = ns->parent) in pidns_memfd_noexec_scope()
70 scope = max(scope, READ_ONCE(ns->memfd_noexec_scope)); in pidns_memfd_noexec_scope()
75 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() argument
82 struct user_namespace *user_ns, struct pid_namespace *ns);
85 extern void put_pid_ns(struct pid_namespace *ns);
90 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument
92 return ns; in get_pid_ns()
95 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() argument
101 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns() argument
104 ns = ERR_PTR(-EINVAL); in copy_pid_ns()
105 return ns; in copy_pid_ns()
108 static inline void put_pid_ns(struct pid_namespace *ns) in put_pid_ns() argument
112 static inline void zap_pid_ns_processes(struct pid_namespace *ns) in zap_pid_ns_processes() argument