new_ns 1530 fs/kernfs/dir.c const char *new_name, const void *new_ns) new_ns 1548 fs/kernfs/dir.c if ((kn->parent == new_parent) && (kn->ns == new_ns) && new_ns 1553 fs/kernfs/dir.c if (kernfs_find_ns(new_parent, new_name, new_ns)) new_ns 1578 fs/kernfs/dir.c kn->ns = new_ns; new_ns 3179 fs/namespace.c struct mnt_namespace *new_ns; new_ns 3187 fs/namespace.c new_ns = kzalloc(sizeof(struct mnt_namespace), GFP_KERNEL); new_ns 3188 fs/namespace.c if (!new_ns) { new_ns 3193 fs/namespace.c ret = ns_alloc_inum(&new_ns->ns); new_ns 3195 fs/namespace.c kfree(new_ns); new_ns 3200 fs/namespace.c new_ns->ns.ops = &mntns_operations; new_ns 3202 fs/namespace.c new_ns->seq = atomic64_add_return(1, &mnt_ns_seq); new_ns 3203 fs/namespace.c atomic_set(&new_ns->count, 1); new_ns 3204 fs/namespace.c INIT_LIST_HEAD(&new_ns->list); new_ns 3205 fs/namespace.c init_waitqueue_head(&new_ns->poll); new_ns 3206 fs/namespace.c new_ns->user_ns = get_user_ns(user_ns); new_ns 3207 fs/namespace.c new_ns->ucounts = ucounts; new_ns 3208 fs/namespace.c return new_ns; new_ns 3215 fs/namespace.c struct mnt_namespace *new_ns; new_ns 3231 fs/namespace.c new_ns = alloc_mnt_ns(user_ns, false); new_ns 3232 fs/namespace.c if (IS_ERR(new_ns)) new_ns 3233 fs/namespace.c return new_ns; new_ns 3243 fs/namespace.c free_mnt_ns(new_ns); new_ns 3251 fs/namespace.c new_ns->root = new; new_ns 3252 fs/namespace.c list_add_tail(&new_ns->list, &new->mnt_list); new_ns 3262 fs/namespace.c q->mnt_ns = new_ns; new_ns 3263 fs/namespace.c new_ns->mounts++; new_ns 3288 fs/namespace.c return new_ns; new_ns 107 fs/sysfs/dir.c const void *new_ns) new_ns 113 fs/sysfs/dir.c ret = kernfs_rename_ns(kobj->sd, parent, new_name, new_ns); new_ns 119 fs/sysfs/dir.c const void *new_ns) new_ns 127 fs/sysfs/dir.c return kernfs_rename_ns(kn, new_parent, kn->name, new_ns); new_ns 167 fs/sysfs/symlink.c const char *old, const char *new, const void *new_ns) new_ns 192 fs/sysfs/symlink.c result = kernfs_rename_ns(kn, parent, new, new_ns); new_ns 368 include/linux/kernfs.h const char *new_name, const void *new_ns); new_ns 472 include/linux/kernfs.h const char *new_name, const void *new_ns) new_ns 233 include/linux/sysfs.h const void *new_ns); new_ns 236 include/linux/sysfs.h const void *new_ns); new_ns 271 include/linux/sysfs.h const void *new_ns); new_ns 325 include/linux/sysfs.h const char *new_name, const void *new_ns) new_ns 332 include/linux/sysfs.h const void *new_ns) new_ns 24 kernel/cgroup/namespace.c struct cgroup_namespace *new_ns; new_ns 27 kernel/cgroup/namespace.c new_ns = kzalloc(sizeof(struct cgroup_namespace), GFP_KERNEL); new_ns 28 kernel/cgroup/namespace.c if (!new_ns) new_ns 30 kernel/cgroup/namespace.c ret = ns_alloc_inum(&new_ns->ns); new_ns 32 kernel/cgroup/namespace.c kfree(new_ns); new_ns 35 kernel/cgroup/namespace.c refcount_set(&new_ns->count, 1); new_ns 36 kernel/cgroup/namespace.c new_ns->ns.ops = &cgroupns_operations; new_ns 37 kernel/cgroup/namespace.c return new_ns; new_ns 54 kernel/cgroup/namespace.c struct cgroup_namespace *new_ns; new_ns 79 kernel/cgroup/namespace.c new_ns = alloc_cgroup_ns(); new_ns 80 kernel/cgroup/namespace.c if (IS_ERR(new_ns)) { new_ns 83 kernel/cgroup/namespace.c return new_ns; new_ns 86 kernel/cgroup/namespace.c new_ns->user_ns = get_user_ns(user_ns); new_ns 87 kernel/cgroup/namespace.c new_ns->ucounts = ucounts; new_ns 88 kernel/cgroup/namespace.c new_ns->root_cset = cset; new_ns 90 kernel/cgroup/namespace.c return new_ns; new_ns 138 kernel/nsproxy.c struct nsproxy *new_ns; new_ns 161 kernel/nsproxy.c new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); new_ns 162 kernel/nsproxy.c if (IS_ERR(new_ns)) new_ns 163 kernel/nsproxy.c return PTR_ERR(new_ns); new_ns 165 kernel/nsproxy.c tsk->nsproxy = new_ns; new_ns 92 kernel/utsname.c struct uts_namespace *new_ns; new_ns 100 kernel/utsname.c new_ns = clone_uts_ns(user_ns, old_ns); new_ns 103 kernel/utsname.c return new_ns;