Home
last modified time | relevance | path

Searched refs:new_ns (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/kernel/cgroup/
Dnamespace.c24 struct cgroup_namespace *new_ns; in alloc_cgroup_ns() local
27 new_ns = kzalloc(sizeof(struct cgroup_namespace), GFP_KERNEL_ACCOUNT); in alloc_cgroup_ns()
28 if (!new_ns) in alloc_cgroup_ns()
30 ret = ns_alloc_inum(&new_ns->ns); in alloc_cgroup_ns()
32 kfree(new_ns); in alloc_cgroup_ns()
35 refcount_set(&new_ns->count, 1); in alloc_cgroup_ns()
36 new_ns->ns.ops = &cgroupns_operations; in alloc_cgroup_ns()
37 return new_ns; in alloc_cgroup_ns()
54 struct cgroup_namespace *new_ns; in copy_cgroup_ns() local
79 new_ns = alloc_cgroup_ns(); in copy_cgroup_ns()
[all …]
/kernel/linux/linux-5.10/fs/sysfs/
Ddir.c107 const void *new_ns) in sysfs_rename_dir_ns() argument
113 ret = kernfs_rename_ns(kobj->sd, parent, new_name, new_ns); in sysfs_rename_dir_ns()
119 const void *new_ns) in sysfs_move_dir_ns() argument
127 return kernfs_rename_ns(kn, new_parent, kn->name, new_ns); in sysfs_move_dir_ns()
Dsymlink.c167 const char *old, const char *new, const void *new_ns) in sysfs_rename_link_ns() argument
192 result = kernfs_rename_ns(kn, parent, new, new_ns); in sysfs_rename_link_ns()
/kernel/linux/linux-5.10/kernel/
Dnsproxy.c155 struct nsproxy *new_ns; in copy_namespaces() local
179 new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); in copy_namespaces()
180 if (IS_ERR(new_ns)) in copy_namespaces()
181 return PTR_ERR(new_ns); in copy_namespaces()
183 ret = timens_on_fork(new_ns, tsk); in copy_namespaces()
185 free_nsproxy(new_ns); in copy_namespaces()
189 tsk->nsproxy = new_ns; in copy_namespaces()
Dutsname.c92 struct uts_namespace *new_ns; in copy_utsname() local
100 new_ns = clone_uts_ns(user_ns, old_ns); in copy_utsname()
103 return new_ns; in copy_utsname()
/kernel/linux/linux-5.10/include/linux/
Dsysfs.h240 const void *new_ns);
243 const void *new_ns);
278 const void *new_ns);
349 const char *new_name, const void *new_ns) in sysfs_rename_dir_ns() argument
356 const void *new_ns) in sysfs_move_dir_ns() argument
Dkernfs.h393 const char *new_name, const void *new_ns);
497 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument
/kernel/linux/linux-5.10/fs/
Dnamespace.c3278 struct mnt_namespace *new_ns; in alloc_mnt_ns() local
3286 new_ns = kzalloc(sizeof(struct mnt_namespace), GFP_KERNEL_ACCOUNT); in alloc_mnt_ns()
3287 if (!new_ns) { in alloc_mnt_ns()
3292 ret = ns_alloc_inum(&new_ns->ns); in alloc_mnt_ns()
3294 kfree(new_ns); in alloc_mnt_ns()
3299 new_ns->ns.ops = &mntns_operations; in alloc_mnt_ns()
3301 new_ns->seq = atomic64_add_return(1, &mnt_ns_seq); in alloc_mnt_ns()
3302 atomic_set(&new_ns->count, 1); in alloc_mnt_ns()
3303 INIT_LIST_HEAD(&new_ns->list); in alloc_mnt_ns()
3304 init_waitqueue_head(&new_ns->poll); in alloc_mnt_ns()
[all …]
/kernel/linux/linux-5.10/fs/kernfs/
Ddir.c1534 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument
1552 if ((kn->parent == new_parent) && (kn->ns == new_ns) && in kernfs_rename_ns()
1557 if (kernfs_find_ns(new_parent, new_name, new_ns)) in kernfs_rename_ns()
1582 kn->ns = new_ns; in kernfs_rename_ns()