Home
last modified time | relevance | path

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

/Linux-v6.6/include/linux/
Dproc_ns.h20 struct ns_common *(*get)(struct task_struct *task);
21 void (*put)(struct ns_common *ns);
22 int (*install)(struct nsset *nsset, struct ns_common *ns);
23 struct user_namespace *(*owner)(struct ns_common *ns);
24 struct ns_common *(*get_parent)(struct ns_common *ns);
67 static inline int ns_alloc_inum(struct ns_common *ns) in ns_alloc_inum()
75 #define get_proc_ns(inode) ((struct ns_common *)(inode)->i_private)
78 typedef struct ns_common *ns_get_path_helper_t(void *);
82 extern bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino);
Duser_namespace.h76 struct ns_common ns;
181 struct ns_common *ns_get_owner(struct ns_common *ns);
222 static inline struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner()
Dmnt_namespace.h9 struct ns_common;
14 extern struct ns_common *from_mnt_ns(struct mnt_namespace *);
Dproc_fs.h234 struct ns_common;
235 int open_related_ns(struct ns_common *ns,
236 struct ns_common *(*get_ns)(struct ns_common *ns));
Dns_common.h9 struct ns_common { struct
Dutsname.h28 struct ns_common ns;
Dpid_namespace.h40 struct ns_common ns;
Dipc_namespace.h80 struct ns_common ns;
Dtime_namespace.h22 struct ns_common ns;
Dcgroup.h772 struct ns_common ns;
/Linux-v6.6/fs/
Dnsfs.c40 struct ns_common *ns = inode->i_private; in ns_prune_dentry()
54 struct ns_common *ns = inode->i_private; in nsfs_evict()
59 static int __ns_get_path(struct path *path, struct ns_common *ns) in __ns_get_path()
116 struct ns_common *ns = ns_get_cb(private_data); in ns_get_path_cb()
130 static struct ns_common *ns_get_path_task(void *private_data) in ns_get_path_task()
148 int open_related_ns(struct ns_common *ns, in open_related_ns()
149 struct ns_common *(*get_ns)(struct ns_common *ns)) in open_related_ns()
161 struct ns_common *relative; in open_related_ns()
193 struct ns_common *ns = get_proc_ns(file_inode(filp)); in ns_ioctl()
221 struct ns_common *ns; in ns_get_name()
[all …]
Dmount.h9 struct ns_common ns;
Dnamespace.c1944 static struct mnt_namespace *to_mnt_ns(struct ns_common *ns) in to_mnt_ns()
1949 struct ns_common *from_mnt_ns(struct mnt_namespace *mnt) in from_mnt_ns()
4493 struct ns_common *ns; in build_mount_idmapped()
4922 static struct ns_common *mntns_get(struct task_struct *task) in mntns_get()
4924 struct ns_common *ns = NULL; in mntns_get()
4938 static void mntns_put(struct ns_common *ns) in mntns_put()
4943 static int mntns_install(struct nsset *nsset, struct ns_common *ns) in mntns_install()
4987 static struct user_namespace *mntns_owner(struct ns_common *ns) in mntns_owner()
/Linux-v6.6/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 nsset *nsset, struct ns_common *ns) in cgroupns_install()
118 static struct ns_common *cgroupns_get(struct task_struct *task) in cgroupns_get()
134 static void cgroupns_put(struct ns_common *ns) in cgroupns_put()
139 static struct user_namespace *cgroupns_owner(struct ns_common *ns) in cgroupns_owner()
/Linux-v6.6/kernel/time/
Dnamespace.c256 static struct time_namespace *to_time_ns(struct ns_common *ns) in to_time_ns()
261 static struct ns_common *timens_get(struct task_struct *task) in timens_get()
277 static struct ns_common *timens_for_children_get(struct task_struct *task) in timens_for_children_get()
293 static void timens_put(struct ns_common *ns) in timens_put()
304 static int timens_install(struct nsset *nsset, struct ns_common *new) in timens_install()
328 struct ns_common *nsc = &nsproxy->time_ns_for_children->ns; in timens_on_fork()
342 static struct user_namespace *timens_owner(struct ns_common *ns) in timens_owner()
367 struct ns_common *ns; in proc_timens_show_offsets()
383 struct ns_common *ns; in proc_timens_set_offset()
/Linux-v6.6/kernel/
Dutsname.c114 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns) in to_uts_ns()
119 static struct ns_common *utsns_get(struct task_struct *task) in utsns_get()
135 static void utsns_put(struct ns_common *ns) in utsns_put()
140 static int utsns_install(struct nsset *nsset, struct ns_common *new) in utsns_install()
155 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
Dpid_namespace.c348 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns()
353 static struct ns_common *pidns_get(struct task_struct *task) in pidns_get()
366 static struct ns_common *pidns_for_children_get(struct task_struct *task) in pidns_for_children_get()
389 static void pidns_put(struct ns_common *ns) in pidns_put()
394 static int pidns_install(struct nsset *nsset, struct ns_common *ns) in pidns_install()
426 static struct ns_common *pidns_get_parent(struct ns_common *ns) in pidns_get_parent()
444 static struct user_namespace *pidns_owner(struct ns_common *ns) in pidns_owner()
Duser_namespace.c1315 static inline struct user_namespace *to_user_ns(struct ns_common *ns) in to_user_ns()
1320 static struct ns_common *userns_get(struct task_struct *task) in userns_get()
1331 static void userns_put(struct ns_common *ns) in userns_put()
1336 static int userns_install(struct nsset *nsset, struct ns_common *ns) in userns_install()
1370 struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner()
1388 static struct user_namespace *userns_owner(struct ns_common *ns) in userns_owner()
Dnsproxy.c363 static inline int validate_ns(struct nsset *nsset, struct ns_common *ns) in validate_ns()
549 struct ns_common *ns = NULL; in SYSCALL_DEFINE2()
/Linux-v6.6/ipc/
Dnamespace.c209 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns()
214 static struct ns_common *ipcns_get(struct task_struct *task) in ipcns_get()
228 static void ipcns_put(struct ns_common *ns) in ipcns_put()
233 static int ipcns_install(struct nsset *nsset, struct ns_common *new) in ipcns_install()
246 static struct user_namespace *ipcns_owner(struct ns_common *ns) in ipcns_owner()
/Linux-v6.6/include/net/
Dnet_namespace.h94 struct ns_common ns;
208 struct ns_common *get_net_ns(struct ns_common *ns);
230 static inline struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns()
/Linux-v6.6/net/core/
Dnet_namespace.c672 struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns()
687 struct ns_common *ns = get_proc_ns(file_inode(f.file)); in get_net_ns_by_fd()
1349 static struct ns_common *netns_get(struct task_struct *task) in netns_get()
1363 static inline struct net *to_net_ns(struct ns_common *ns) in to_net_ns()
1368 static void netns_put(struct ns_common *ns) in netns_put()
1373 static int netns_install(struct nsset *nsset, struct ns_common *ns) in netns_install()
1387 static struct user_namespace *netns_owner(struct ns_common *ns) in netns_owner()
/Linux-v6.6/kernel/bpf/
Doffload.c428 static struct ns_common *bpf_prog_offload_info_fill_ns(void *private_data) in bpf_prog_offload_info_fill_ns()
432 struct ns_common *ns; in bpf_prog_offload_info_fill_ns()
637 static struct ns_common *bpf_map_offload_info_fill_ns(void *private_data) in bpf_map_offload_info_fill_ns()
640 struct ns_common *ns; in bpf_map_offload_info_fill_ns()