Home
last modified time | relevance | path

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

/linux-6.12.1/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.h82 struct ns_common ns;
192 struct ns_common *ns_get_owner(struct ns_common *ns);
233 static inline struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner()
Dmnt_namespace.h12 struct ns_common;
18 extern struct ns_common *from_mnt_ns(struct mnt_namespace *);
Dproc_fs.h235 struct ns_common;
236 int open_related_ns(struct ns_common *ns,
237 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.h25 struct ns_common ns;
Dcgroup.h770 struct ns_common ns;
/linux-6.12.1/fs/
Dpidfs.c122 struct ns_common *ns_common = NULL; in pidfd_ioctl() local
152 ns_common = to_ns_common(nsp->cgroup_ns); in pidfd_ioctl()
158 ns_common = to_ns_common(nsp->ipc_ns); in pidfd_ioctl()
163 ns_common = to_ns_common(nsp->mnt_ns); in pidfd_ioctl()
167 ns_common = to_ns_common(nsp->net_ns); in pidfd_ioctl()
168 get_net_ns(ns_common); in pidfd_ioctl()
174 ns_common = to_ns_common(nsp->pid_ns_for_children); in pidfd_ioctl()
180 ns_common = to_ns_common(nsp->time_ns); in pidfd_ioctl()
186 ns_common = to_ns_common(nsp->time_ns_for_children); in pidfd_ioctl()
192 ns_common = to_ns_common(nsp->uts_ns); in pidfd_ioctl()
[all …]
Dnsfs.c32 struct ns_common *ns = inode->i_private; in ns_dname()
47 struct ns_common *ns = inode->i_private; in nsfs_evict()
55 struct ns_common *ns; in ns_get_path_cb()
69 static struct ns_common *ns_get_path_task(void *private_data) in ns_get_path_task()
95 int open_namespace(struct ns_common *ns) in open_namespace()
118 int open_related_ns(struct ns_common *ns, in open_related_ns()
119 struct ns_common *(*get_ns)(struct ns_common *ns)) in open_related_ns()
121 struct ns_common *relative; in open_related_ns()
161 struct ns_common *ns = get_proc_ns(file_inode(filp)); in ns_ioctl()
323 struct ns_common *ns; in ns_get_name()
[all …]
Dmount.h9 struct ns_common ns;
166 static inline struct mnt_namespace *to_mnt_ns(struct ns_common *ns) in to_mnt_ns()
Dinternal.h20 struct ns_common;
243 int open_namespace(struct ns_common *ns);
Dnamespace.c2063 struct ns_common *from_mnt_ns(struct mnt_namespace *mnt) in from_mnt_ns()
4674 struct ns_common *ns; in build_mount_idmapped()
5298 struct ns_common *ns; in grab_requested_mnt_ns()
5726 static struct ns_common *mntns_get(struct task_struct *task) in mntns_get()
5728 struct ns_common *ns = NULL; in mntns_get()
5742 static void mntns_put(struct ns_common *ns) in mntns_put()
5747 static int mntns_install(struct nsset *nsset, struct ns_common *ns) in mntns_install()
5791 static struct user_namespace *mntns_owner(struct ns_common *ns) in mntns_owner()
/linux-6.12.1/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-6.12.1/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-6.12.1/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.c326 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns()
331 static struct ns_common *pidns_get(struct task_struct *task) in pidns_get()
344 static struct ns_common *pidns_for_children_get(struct task_struct *task) in pidns_for_children_get()
367 static void pidns_put(struct ns_common *ns) in pidns_put()
372 static int pidns_install(struct nsset *nsset, struct ns_common *ns) in pidns_install()
404 static struct ns_common *pidns_get_parent(struct ns_common *ns) in pidns_get_parent()
422 static struct user_namespace *pidns_owner(struct ns_common *ns) in pidns_owner()
Duser_namespace.c1317 static inline struct user_namespace *to_user_ns(struct ns_common *ns) in to_user_ns()
1322 static struct ns_common *userns_get(struct task_struct *task) in userns_get()
1333 static void userns_put(struct ns_common *ns) in userns_put()
1338 static int userns_install(struct nsset *nsset, struct ns_common *ns) in userns_install()
1372 struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner()
1390 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-6.12.1/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-6.12.1/include/net/
Dnet_namespace.h92 struct ns_common ns;
206 struct ns_common *get_net_ns(struct ns_common *ns);
228 static inline struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns()
/linux-6.12.1/net/core/
Dnet_namespace.c684 struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns()
704 struct ns_common *ns = get_proc_ns(file_inode(fd_file(f))); in get_net_ns_by_fd()
1430 static struct ns_common *netns_get(struct task_struct *task) in netns_get()
1444 static inline struct net *to_net_ns(struct ns_common *ns) in to_net_ns()
1449 static void netns_put(struct ns_common *ns) in netns_put()
1454 static int netns_install(struct nsset *nsset, struct ns_common *ns) in netns_install()
1468 static struct user_namespace *netns_owner(struct ns_common *ns) in netns_owner()
/linux-6.12.1/kernel/bpf/
Doffload.c435 static struct ns_common *bpf_prog_offload_info_fill_ns(void *private_data) in bpf_prog_offload_info_fill_ns()
439 struct ns_common *ns; in bpf_prog_offload_info_fill_ns()
644 static struct ns_common *bpf_map_offload_info_fill_ns(void *private_data) in bpf_map_offload_info_fill_ns()
647 struct ns_common *ns; in bpf_map_offload_info_fill_ns()