Home
last modified time | relevance | path

Searched refs:ns_common (Results 1 – 23 of 23) sorted by relevance

/Linux-v5.4/include/linux/
Dproc_ns.h20 struct ns_common *(*get)(struct task_struct *task);
21 void (*put)(struct ns_common *ns);
22 int (*install)(struct nsproxy *nsproxy, struct ns_common *ns);
23 struct user_namespace *(*owner)(struct ns_common *ns);
24 struct ns_common *(*get_parent)(struct ns_common *ns);
69 static inline int ns_alloc_inum(struct ns_common *ns) in ns_alloc_inum()
78 #define get_proc_ns(inode) ((struct ns_common *)(inode)->i_private)
81 typedef struct ns_common *ns_get_path_helper_t(void *);
Duser_namespace.h64 struct ns_common ns;
138 struct ns_common *ns_get_owner(struct ns_common *ns);
179 static inline struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner()
Dproc_fs.h142 struct ns_common;
143 int open_related_ns(struct ns_common *ns,
144 struct ns_common *(*get_ns)(struct ns_common *ns));
Dns_common.h7 struct ns_common { struct
Dutsname.h29 struct ns_common ns;
Dpid_namespace.h47 struct ns_common ns;
Dipc_namespace.h71 struct ns_common ns;
Dsocket.h410 extern struct ns_common *get_net_ns(struct ns_common *ns);
Dcgroup.h855 struct ns_common ns;
/Linux-v5.4/fs/
Dnsfs.c36 struct ns_common *ns = inode->i_private; in ns_prune_dentry()
50 struct ns_common *ns = inode->i_private; in nsfs_evict()
55 static void *__ns_get_path(struct path *path, struct ns_common *ns) in __ns_get_path()
112 struct ns_common *ns = ns_get_cb(private_data); in ns_get_path_cb()
127 static struct ns_common *ns_get_path_task(void *private_data) in ns_get_path_task()
145 int open_related_ns(struct ns_common *ns, in open_related_ns()
146 struct ns_common *(*get_ns)(struct ns_common *ns)) in open_related_ns()
158 struct ns_common *relative; in open_related_ns()
190 struct ns_common *ns = get_proc_ns(file_inode(filp)); in ns_ioctl()
218 struct ns_common *ns; in ns_get_name()
Dmount.h10 struct ns_common ns;
Dnamespace.c1731 struct mnt_namespace *to_mnt_ns(struct ns_common *ns) in to_mnt_ns()
3943 static struct ns_common *mntns_get(struct task_struct *task) in mntns_get()
3945 struct ns_common *ns = NULL; in mntns_get()
3959 static void mntns_put(struct ns_common *ns) in mntns_put()
3964 static int mntns_install(struct nsproxy *nsproxy, struct ns_common *ns) in mntns_install()
4006 static struct user_namespace *mntns_owner(struct ns_common *ns) in mntns_owner()
/Linux-v5.4/kernel/cgroup/
Dnamespace.c93 static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns) in to_cg_ns()
98 static int cgroupns_install(struct nsproxy *nsproxy, struct ns_common *ns) in cgroupns_install()
117 static struct ns_common *cgroupns_get(struct task_struct *task) in cgroupns_get()
133 static void cgroupns_put(struct ns_common *ns) in cgroupns_put()
138 static struct user_namespace *cgroupns_owner(struct ns_common *ns) in cgroupns_owner()
/Linux-v5.4/kernel/
Dutsname.c117 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns) in to_uts_ns()
122 static struct ns_common *utsns_get(struct task_struct *task) in utsns_get()
138 static void utsns_put(struct ns_common *ns) in utsns_put()
143 static int utsns_install(struct nsproxy *nsproxy, struct ns_common *new) in utsns_install()
157 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
Dpid_namespace.c337 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns()
342 static struct ns_common *pidns_get(struct task_struct *task) in pidns_get()
355 static struct ns_common *pidns_for_children_get(struct task_struct *task) in pidns_for_children_get()
378 static void pidns_put(struct ns_common *ns) in pidns_put()
383 static int pidns_install(struct nsproxy *nsproxy, struct ns_common *ns) in pidns_install()
414 static struct ns_common *pidns_get_parent(struct ns_common *ns) in pidns_get_parent()
432 static struct user_namespace *pidns_owner(struct ns_common *ns) in pidns_owner()
Duser_namespace.c1235 static inline struct user_namespace *to_user_ns(struct ns_common *ns) in to_user_ns()
1240 static struct ns_common *userns_get(struct task_struct *task) in userns_get()
1251 static void userns_put(struct ns_common *ns) in userns_put()
1256 static int userns_install(struct nsproxy *nsproxy, struct ns_common *ns) in userns_install()
1287 struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner()
1305 static struct user_namespace *userns_owner(struct ns_common *ns) in userns_owner()
Dnsproxy.c238 struct ns_common *ns; in SYSCALL_DEFINE2()
/Linux-v5.4/ipc/
Dnamespace.c156 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns()
161 static struct ns_common *ipcns_get(struct task_struct *task) in ipcns_get()
175 static void ipcns_put(struct ns_common *ns) in ipcns_put()
180 static int ipcns_install(struct nsproxy *nsproxy, struct ns_common *new) in ipcns_install()
194 static struct user_namespace *ipcns_owner(struct ns_common *ns) in ipcns_owner()
/Linux-v5.4/kernel/bpf/
Doffload.c268 static struct ns_common *bpf_prog_offload_info_fill_ns(void *private_data) in bpf_prog_offload_info_fill_ns()
272 struct ns_common *ns; in bpf_prog_offload_info_fill_ns()
496 static struct ns_common *bpf_map_offload_info_fill_ns(void *private_data) in bpf_map_offload_info_fill_ns()
499 struct ns_common *ns; in bpf_map_offload_info_fill_ns()
/Linux-v5.4/net/core/
Dnet_namespace.c649 struct ns_common *ns; in get_net_ns_by_fd()
1334 static struct ns_common *netns_get(struct task_struct *task) in netns_get()
1348 static inline struct net *to_net_ns(struct ns_common *ns) in to_net_ns()
1353 static void netns_put(struct ns_common *ns) in netns_put()
1358 static int netns_install(struct nsproxy *nsproxy, struct ns_common *ns) in netns_install()
1371 static struct user_namespace *netns_owner(struct ns_common *ns) in netns_owner()
/Linux-v5.4/include/net/
Dnet_namespace.h90 struct ns_common ns;
/Linux-v5.4/net/
Dsocket.c1081 struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns()
/Linux-v5.4/include/
DKbuild394 header-test- += linux/ns_common.h