Symbol: ns_common
fs/internal.h
20
struct ns_common;
fs/internal.h
253
int open_namespace(struct ns_common *ns);
fs/internal.h
254
struct file *open_namespace_file(struct ns_common *ns);
fs/mount.h
12
struct ns_common ns;
fs/mount.h
216
static inline struct mnt_namespace *to_mnt_ns(struct ns_common *ns)
fs/namespace.c
172
struct ns_common *ns;
fs/namespace.c
2087
struct ns_common *ns;
fs/namespace.c
2098
struct ns_common *from_mnt_ns(struct mnt_namespace *mnt)
fs/namespace.c
2105
struct ns_common *ns;
fs/namespace.c
4949
struct ns_common *ns;
fs/namespace.c
5897
struct ns_common *ns;
fs/namespace.c
6404
static struct ns_common *mntns_get(struct task_struct *task)
fs/namespace.c
6406
struct ns_common *ns = NULL;
fs/namespace.c
6420
static void mntns_put(struct ns_common *ns)
fs/namespace.c
6425
static int mntns_install(struct nsset *nsset, struct ns_common *ns)
fs/namespace.c
6469
static struct user_namespace *mntns_owner(struct ns_common *ns)
fs/nsfs.c
102
struct file *open_namespace_file(struct ns_common *ns)
fs/nsfs.c
123
int open_namespace(struct ns_common *ns)
fs/nsfs.c
136
int open_related_ns(struct ns_common *ns,
fs/nsfs.c
137
struct ns_common *(*get_ns)(struct ns_common *ns))
fs/nsfs.c
139
struct ns_common *relative;
fs/nsfs.c
219
struct ns_common *ns;
fs/nsfs.c
373
struct ns_common *ns;
fs/nsfs.c
398
bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino)
fs/nsfs.c
407
const struct ns_common *ns = inode->i_private;
fs/nsfs.c
423
struct ns_common *ns = data;
fs/nsfs.c
444
struct ns_common *ns = data;
fs/nsfs.c
46
struct ns_common *ns = inode->i_private;
fs/nsfs.c
460
struct ns_common *ns = inode->i_private;
fs/nsfs.c
479
bool is_current_namespace(struct ns_common *ns)
fs/nsfs.c
524
struct ns_common *ns;
fs/nsfs.c
60
struct ns_common *ns = inode->i_private;
fs/nsfs.c
70
struct ns_common *ns;
fs/nsfs.c
84
static struct ns_common *ns_get_path_task(void *private_data)
fs/pidfs.c
509
struct ns_common *ns_common = NULL;
fs/pidfs.c
554
ns_common = to_ns_common(nsp->cgroup_ns);
fs/pidfs.c
561
ns_common = to_ns_common(nsp->ipc_ns);
fs/pidfs.c
567
ns_common = to_ns_common(nsp->mnt_ns);
fs/pidfs.c
573
ns_common = to_ns_common(nsp->net_ns);
fs/pidfs.c
580
ns_common = to_ns_common(nsp->pid_ns_for_children);
fs/pidfs.c
587
ns_common = to_ns_common(nsp->time_ns);
fs/pidfs.c
594
ns_common = to_ns_common(nsp->time_ns_for_children);
fs/pidfs.c
601
ns_common = to_ns_common(nsp->uts_ns);
fs/pidfs.c
612
ns_common = to_ns_common(user_ns);
fs/pidfs.c
623
ns_common = to_ns_common(pid_ns);
fs/pidfs.c
631
if (!ns_common)
fs/pidfs.c
635
return open_namespace(ns_common);
fs/proc/root.c
121
struct ns_common *ns;
include/linux/cgroup_namespace.h
18
static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns)
include/linux/cgroup_namespace.h
8
struct ns_common ns;
include/linux/ipc_namespace.h
132
static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns)
include/linux/ipc_namespace.h
80
struct ns_common ns;
include/linux/mnt_namespace.h
12
struct ns_common;
include/linux/mnt_namespace.h
20
extern struct ns_common *from_mnt_ns(struct mnt_namespace *);
include/linux/ns_common.h
107
static __always_inline __must_check bool __ns_ref_dec_and_lock(struct ns_common *ns,
include/linux/ns_common.h
11
bool is_current_namespace(struct ns_common *ns);
include/linux/ns_common.h
12
int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_operations *ops, int inum);
include/linux/ns_common.h
13
void __ns_common_free(struct ns_common *ns);
include/linux/ns_common.h
131
void __ns_ref_active_put(struct ns_common *ns);
include/linux/ns_common.h
136
static __always_inline struct ns_common *__must_check ns_get_unless_inactive(struct ns_common *ns)
include/linux/ns_common.h
14
struct ns_common *__must_check ns_owner(struct ns_common *ns);
include/linux/ns_common.h
147
void __ns_ref_active_get(struct ns_common *ns);
include/linux/ns_common.h
16
static __always_inline bool is_ns_init_inum(const struct ns_common *ns)
include/linux/ns_common.h
23
static __always_inline bool is_ns_init_id(const struct ns_common *ns)
include/linux/ns_common.h
60
static __always_inline __must_check int __ns_ref_active_read(const struct ns_common *ns)
include/linux/ns_common.h
65
static __always_inline __must_check int __ns_ref_read(const struct ns_common *ns)
include/linux/ns_common.h
70
static __always_inline __must_check bool __ns_ref_put(struct ns_common *ns)
include/linux/ns_common.h
84
static __always_inline __must_check bool __ns_ref_get(struct ns_common *ns)
include/linux/ns_common.h
97
static __always_inline void __ns_ref_inc(struct ns_common *ns)
include/linux/nsfs.h
17
typedef struct ns_common *ns_get_path_helper_t(void *);
include/linux/nsfs.h
21
bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino);
include/linux/nstree.h
14
struct ns_common;
include/linux/nstree.h
48
u64 __ns_tree_gen_id(struct ns_common *ns, u64 id);
include/linux/nstree.h
49
void __ns_tree_add_raw(struct ns_common *ns, struct ns_tree_root *ns_tree);
include/linux/nstree.h
50
void __ns_tree_remove(struct ns_common *ns, struct ns_tree_root *ns_tree);
include/linux/nstree.h
51
struct ns_common *ns_tree_lookup_rcu(u64 ns_id, int ns_type);
include/linux/nstree.h
52
struct ns_common *__ns_tree_adjoined_rcu(struct ns_common *ns,
include/linux/nstree.h
56
static inline void __ns_tree_add(struct ns_common *ns, struct ns_tree_root *ns_tree, u64 id)
include/linux/pid_namespace.h
48
struct ns_common ns;
include/linux/pid_namespace.h
57
static inline struct pid_namespace *to_pid_ns(struct ns_common *ns)
include/linux/proc_fs.h
239
struct ns_common;
include/linux/proc_fs.h
240
int open_related_ns(struct ns_common *ns,
include/linux/proc_fs.h
241
struct ns_common *(*get_ns)(struct ns_common *ns));
include/linux/proc_ns.h
20
struct ns_common *(*get)(struct task_struct *task);
include/linux/proc_ns.h
21
void (*put)(struct ns_common *ns);
include/linux/proc_ns.h
22
int (*install)(struct nsset *nsset, struct ns_common *ns);
include/linux/proc_ns.h
23
struct user_namespace *(*owner)(struct ns_common *ns);
include/linux/proc_ns.h
24
struct ns_common *(*get_parent)(struct ns_common *ns);
include/linux/proc_ns.h
68
#define get_proc_ns(inode) ((struct ns_common *)(inode)->i_private)
include/linux/time_namespace.h
26
struct ns_common ns;
include/linux/time_namespace.h
36
static inline struct time_namespace *to_time_ns(struct ns_common *ns)
include/linux/user_namespace.h
169
static inline struct user_namespace *to_user_ns(struct ns_common *ns)
include/linux/user_namespace.h
206
struct ns_common *ns_get_owner(struct ns_common *ns);
include/linux/user_namespace.h
247
static inline struct ns_common *ns_get_owner(struct ns_common *ns)
include/linux/user_namespace.h
84
struct ns_common ns;
include/linux/uts_namespace.h
15
struct ns_common ns;
include/linux/uts_namespace.h
21
static inline struct uts_namespace *to_uts_ns(struct ns_common *ns)
include/net/net_namespace.h
219
struct ns_common *get_net_ns(struct ns_common *ns);
include/net/net_namespace.h
243
static inline struct ns_common *get_net_ns(struct ns_common *ns)
include/net/net_namespace.h
270
static inline struct net *to_net_ns(struct ns_common *ns)
include/net/net_namespace.h
97
struct ns_common ns;
ipc/namespace.c
214
static struct ns_common *ipcns_get(struct task_struct *task)
ipc/namespace.c
228
static void ipcns_put(struct ns_common *ns)
ipc/namespace.c
233
static int ipcns_install(struct nsset *nsset, struct ns_common *new)
ipc/namespace.c
246
static struct user_namespace *ipcns_owner(struct ns_common *ns)
kernel/bpf/offload.c
426
static struct ns_common *bpf_prog_offload_info_fill_ns(void *private_data)
kernel/bpf/offload.c
430
struct ns_common *ns;
kernel/bpf/offload.c
639
static struct ns_common *bpf_map_offload_info_fill_ns(void *private_data)
kernel/bpf/offload.c
642
struct ns_common *ns;
kernel/cgroup/namespace.c
112
static struct ns_common *cgroupns_get(struct task_struct *task)
kernel/cgroup/namespace.c
128
static void cgroupns_put(struct ns_common *ns)
kernel/cgroup/namespace.c
133
static struct user_namespace *cgroupns_owner(struct ns_common *ns)
kernel/cgroup/namespace.c
92
static int cgroupns_install(struct nsset *nsset, struct ns_common *ns)
kernel/nscommon.c
11
static void ns_debug(struct ns_common *ns, const struct proc_ns_operations *ops)
kernel/nscommon.c
164
void __ns_ref_active_put(struct ns_common *ns)
kernel/nscommon.c
282
void __ns_ref_active_get(struct ns_common *ns)
kernel/nscommon.c
56
int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_operations *ops, int inum)
kernel/nscommon.c
92
void __ns_common_free(struct ns_common *ns)
kernel/nscommon.c
97
struct ns_common *__must_check ns_owner(struct ns_common *ns)
kernel/nsproxy.c
380
static inline int validate_ns(struct nsset *nsset, struct ns_common *ns)
kernel/nsproxy.c
566
struct ns_common *ns = NULL;
kernel/nstree.c
152
static inline struct ns_common *node_to_ns(const struct rb_node *node)
kernel/nstree.c
156
return rb_entry(node, struct ns_common, ns_tree_node.ns_node);
kernel/nstree.c
159
static inline struct ns_common *node_to_ns_unified(const struct rb_node *node)
kernel/nstree.c
163
return rb_entry(node, struct ns_common, ns_unified_node.ns_node);
kernel/nstree.c
166
static inline struct ns_common *node_to_ns_owner(const struct rb_node *node)
kernel/nstree.c
170
return rb_entry(node, struct ns_common, ns_owner_node.ns_node);
kernel/nstree.c
197
void __ns_tree_add_raw(struct ns_common *ns, struct ns_tree_root *ns_tree)
kernel/nstree.c
219
struct ns_common *owner = &user_ns->ns;
kernel/nstree.c
233
void __ns_tree_remove(struct ns_common *ns, struct ns_tree_root *ns_tree)
kernel/nstree.c
253
struct ns_common *owner = &user_ns->ns;
kernel/nstree.c
265
const struct ns_common *ns = node_to_ns(node);
kernel/nstree.c
277
const struct ns_common *ns = node_to_ns_unified(node);
kernel/nstree.c
310
static struct ns_common *__ns_unified_tree_lookup_rcu(u64 ns_id)
kernel/nstree.c
325
static struct ns_common *__ns_tree_lookup_rcu(u64 ns_id, int ns_type)
kernel/nstree.c
345
struct ns_common *ns_tree_lookup_rcu(u64 ns_id, int ns_type)
kernel/nstree.c
365
struct ns_common *__ns_tree_adjoined_rcu(struct ns_common *ns,
kernel/nstree.c
379
return list_entry_rcu(list, struct ns_common, ns_tree_node.ns_list_entry);
kernel/nstree.c
392
u64 __ns_tree_gen_id(struct ns_common *ns, u64 id)
kernel/nstree.c
411
struct ns_common *first_ns;
kernel/nstree.c
465
static struct ns_common *lookup_ns_owner_at(u64 ns_id, struct ns_common *owner)
kernel/nstree.c
467
struct ns_common *ret = NULL;
kernel/nstree.c
476
struct ns_common *ns;
kernel/nstree.c
494
static struct ns_common *lookup_ns_id(u64 mnt_ns_id, int ns_type)
kernel/nstree.c
496
struct ns_common *ns;
kernel/nstree.c
510
const struct ns_common *ns)
kernel/nstree.c
516
struct ns_common *ns)
kernel/nstree.c
525
static inline void ns_put(struct ns_common *ns)
kernel/nstree.c
531
DEFINE_FREE(ns_put, struct ns_common *, if (!IS_ERR_OR_NULL(_T)) ns_put(_T))
kernel/nstree.c
533
static inline struct ns_common *__must_check legitimize_ns(const struct klistns *kls,
kernel/nstree.c
534
struct ns_common *candidate)
kernel/nstree.c
536
struct ns_common *ns __free(ns_put) = NULL;
kernel/nstree.c
555
struct ns_common *ns = NULL, *first_ns = NULL, *prev = NULL;
kernel/nstree.c
591
struct ns_common *valid;
kernel/nstree.c
625
static struct ns_common *lookup_ns_id_at(u64 ns_id, int ns_type)
kernel/nstree.c
627
struct ns_common *ret = NULL;
kernel/nstree.c
645
struct ns_common *ns;
kernel/nstree.c
670
static inline struct ns_common *first_ns_common(const struct list_head *head,
kernel/nstree.c
674
return list_entry_rcu(head->next, struct ns_common, ns_tree_node.ns_list_entry);
kernel/nstree.c
675
return list_entry_rcu(head->next, struct ns_common, ns_unified_node.ns_list_entry);
kernel/nstree.c
678
static inline struct ns_common *next_ns_common(struct ns_common *ns,
kernel/nstree.c
682
return list_entry_rcu(ns->ns_tree_node.ns_list_entry.next, struct ns_common, ns_tree_node.ns_list_entry);
kernel/nstree.c
683
return list_entry_rcu(ns->ns_unified_node.ns_list_entry.next, struct ns_common, ns_unified_node.ns_list_entry);
kernel/nstree.c
686
static inline bool ns_common_is_head(struct ns_common *ns,
kernel/nstree.c
699
struct ns_common *ns, *first_ns = NULL, *prev = NULL;
kernel/nstree.c
736
struct ns_common *valid;
kernel/pid_namespace.c
348
static struct ns_common *pidns_get(struct task_struct *task)
kernel/pid_namespace.c
361
static struct ns_common *pidns_for_children_get(struct task_struct *task)
kernel/pid_namespace.c
384
static void pidns_put(struct ns_common *ns)
kernel/pid_namespace.c
401
static int pidns_install(struct nsset *nsset, struct ns_common *ns)
kernel/pid_namespace.c
427
static struct ns_common *pidns_get_parent(struct ns_common *ns)
kernel/pid_namespace.c
445
static struct user_namespace *pidns_owner(struct ns_common *ns)
kernel/time/namespace.c
264
static struct ns_common *timens_get(struct task_struct *task)
kernel/time/namespace.c
280
static struct ns_common *timens_for_children_get(struct task_struct *task)
kernel/time/namespace.c
296
static void timens_put(struct ns_common *ns)
kernel/time/namespace.c
307
static int timens_install(struct nsset *nsset, struct ns_common *new)
kernel/time/namespace.c
331
struct ns_common *nsc = &nsproxy->time_ns_for_children->ns;
kernel/time/namespace.c
345
static struct user_namespace *timens_owner(struct ns_common *ns)
kernel/time/namespace.c
370
struct ns_common *ns;
kernel/time/namespace.c
386
struct ns_common *ns;
kernel/user_namespace.c
1327
static struct ns_common *userns_get(struct task_struct *task)
kernel/user_namespace.c
1338
static void userns_put(struct ns_common *ns)
kernel/user_namespace.c
1343
static int userns_install(struct nsset *nsset, struct ns_common *ns)
kernel/user_namespace.c
1377
struct ns_common *ns_get_owner(struct ns_common *ns)
kernel/user_namespace.c
1395
static struct user_namespace *userns_owner(struct ns_common *ns)
kernel/utsname.c
106
static struct ns_common *utsns_get(struct task_struct *task)
kernel/utsname.c
122
static void utsns_put(struct ns_common *ns)
kernel/utsname.c
127
static int utsns_install(struct nsset *nsset, struct ns_common *new)
kernel/utsname.c
142
static struct user_namespace *utsns_owner(struct ns_common *ns)
net/core/net_namespace.c
1512
static struct ns_common *netns_get(struct task_struct *task)
net/core/net_namespace.c
1526
static void netns_put(struct ns_common *ns)
net/core/net_namespace.c
1531
static int netns_install(struct nsset *nsset, struct ns_common *ns)
net/core/net_namespace.c
1545
static struct user_namespace *netns_owner(struct ns_common *ns)
net/core/net_namespace.c
762
struct ns_common *get_net_ns(struct ns_common *ns)
net/core/net_namespace.c
781
struct ns_common *ns = get_proc_ns(file_inode(fd_file(f)));