Searched refs:new_ns (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/kernel/cgroup/ |
D | namespace.c | 24 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->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 …]
|
/linux-6.1.9/fs/sysfs/ |
D | dir.c | 106 const void *new_ns) in sysfs_rename_dir_ns() argument 112 ret = kernfs_rename_ns(kobj->sd, parent, new_name, new_ns); in sysfs_rename_dir_ns() 118 const void *new_ns) in sysfs_move_dir_ns() argument 126 return kernfs_rename_ns(kn, new_parent, kn->name, new_ns); in sysfs_move_dir_ns()
|
D | symlink.c | 167 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()
|
/linux-6.1.9/kernel/ |
D | utsname.c | 92 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()
|
D | nsproxy.c | 155 struct nsproxy *new_ns; in copy_namespaces() local 178 new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); in copy_namespaces() 179 if (IS_ERR(new_ns)) in copy_namespaces() 180 return PTR_ERR(new_ns); in copy_namespaces() 182 timens_on_fork(new_ns, tsk); in copy_namespaces() 184 tsk->nsproxy = new_ns; in copy_namespaces()
|
/linux-6.1.9/include/linux/ |
D | sysfs.h | 264 const void *new_ns); 267 const void *new_ns); 302 const void *new_ns); 373 const char *new_name, const void *new_ns) in sysfs_rename_dir_ns() argument 380 const void *new_ns) in sysfs_move_dir_ns() argument
|
D | kernfs.h | 442 const char *new_name, const void *new_ns); 546 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument
|
/linux-6.1.9/fs/ |
D | namespace.c | 3418 struct mnt_namespace *new_ns; in alloc_mnt_ns() local 3426 new_ns = kzalloc(sizeof(struct mnt_namespace), GFP_KERNEL_ACCOUNT); in alloc_mnt_ns() 3427 if (!new_ns) { in alloc_mnt_ns() 3432 ret = ns_alloc_inum(&new_ns->ns); in alloc_mnt_ns() 3434 kfree(new_ns); in alloc_mnt_ns() 3439 new_ns->ns.ops = &mntns_operations; in alloc_mnt_ns() 3441 new_ns->seq = atomic64_add_return(1, &mnt_ns_seq); in alloc_mnt_ns() 3442 refcount_set(&new_ns->ns.count, 1); in alloc_mnt_ns() 3443 INIT_LIST_HEAD(&new_ns->list); in alloc_mnt_ns() 3444 init_waitqueue_head(&new_ns->poll); in alloc_mnt_ns() [all …]
|
/linux-6.1.9/fs/kernfs/ |
D | dir.c | 1656 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument 1676 if ((kn->parent == new_parent) && (kn->ns == new_ns) && in kernfs_rename_ns() 1681 if (kernfs_find_ns(new_parent, new_name, new_ns)) in kernfs_rename_ns() 1706 kn->ns = new_ns; in kernfs_rename_ns()
|