/fs/proc/ |
D | root.c | 35 struct pid_namespace *ns = (struct pid_namespace *)data; in proc_set_super() local 36 sb->s_fs_info = get_pid_ns(ns); in proc_set_super() 105 struct pid_namespace *ns; in proc_mount() local 109 ns = (struct pid_namespace *)data; in proc_mount() 112 ns = task_active_pid_ns(current); in proc_mount() 116 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN)) in proc_mount() 120 sb = sget(fs_type, proc_test_super, proc_set_super, flags, ns); in proc_mount() 131 if (!proc_parse_options(options, ns)) { in proc_mount() 151 struct pid_namespace *ns; in proc_kill_sb() local 153 ns = (struct pid_namespace *)sb->s_fs_info; in proc_kill_sb() [all …]
|
D | namespaces.c | 48 const struct proc_ns_operations *ns_ops = PROC_I(inode)->ns.ns_ops; in ns_dname() 67 void *ns; in proc_ns_get_dentry() local 69 ns = ns_ops->get(task); in proc_ns_get_dentry() 70 if (!ns) in proc_ns_get_dentry() 75 ns_ops->put(ns); in proc_ns_get_dentry() 79 inode = iget_locked(sb, ns_ops->inum(ns)); in proc_ns_get_dentry() 82 ns_ops->put(ns); in proc_ns_get_dentry() 92 ei->ns.ns_ops = ns_ops; in proc_ns_get_dentry() 93 ei->ns.ns = ns; in proc_ns_get_dentry() 96 ns_ops->put(ns); in proc_ns_get_dentry() [all …]
|
D | thread_self.c | 13 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_thread_self_readlink() local 14 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_readlink() 15 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_readlink() 25 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_thread_self_follow_link() local 26 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_follow_link() 27 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_follow_link() 51 struct pid_namespace *ns = s->s_fs_info; in proc_setup_thread_self() local 78 ns->proc_thread_self = thread_self; in proc_setup_thread_self()
|
D | self.c | 13 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_self_readlink() local 14 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_readlink() 24 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_self_follow_link() local 25 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_follow_link() 50 struct pid_namespace *ns = s->s_fs_info; in proc_setup_self() local 77 ns->proc_self = self; in proc_setup_self()
|
D | array.c | 154 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() argument 166 task_tgid_nr_ns(rcu_dereference(p->real_parent), ns) : 0; in task_state() 171 tpid = task_pid_nr_ns(tracer, ns); in task_state() 184 task_tgid_nr_ns(p, ns), in task_state() 186 pid_nr_ns(pid, ns), in task_state() 353 int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, in proc_pid_status() argument 359 task_state(m, ns, pid, task); in proc_pid_status() 374 static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, in do_task_stat() argument 419 tty_pgrp = pid_nr_ns(pgrp, ns); in do_task_stat() 449 sid = task_session_nr_ns(task, ns); in do_task_stat() [all …]
|
D | base.c | 199 static int proc_pid_cmdline(struct seq_file *m, struct pid_namespace *ns, in proc_pid_cmdline() argument 211 static int proc_pid_auxv(struct seq_file *m, struct pid_namespace *ns, in proc_pid_auxv() argument 233 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan() argument 272 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack() argument 309 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat() argument 379 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score() argument 418 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits() argument 460 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall() argument 575 struct pid_namespace *ns; in proc_single_show() local 580 ns = inode->i_sb->s_fs_info; in proc_single_show() [all …]
|
D | inode.c | 37 void *ns; in proc_evict_inode() local 55 ns_ops = PROC_I(inode)->ns.ns_ops; in proc_evict_inode() 56 ns = PROC_I(inode)->ns.ns; in proc_evict_inode() 57 if (ns_ops && ns) in proc_evict_inode() 58 ns_ops->put(ns); in proc_evict_inode() 77 ei->ns.ns = NULL; in proc_alloc_inode() 78 ei->ns.ns_ops = NULL; in proc_alloc_inode()
|
D | proc_net.c | 110 struct nsproxy *ns; in get_proc_task_net() local 117 ns = task->nsproxy; in get_proc_task_net() 118 if (ns != NULL) in get_proc_task_net() 119 net = get_net(ns->net_ns); in get_proc_task_net()
|
D | internal.h | 56 struct pid_namespace *ns, struct pid *pid, 67 struct proc_ns ns; member
|
/fs/kernfs/ |
D | dir.c | 185 static unsigned int kernfs_name_hash(const char *name, const void *ns) in kernfs_name_hash() argument 191 hash = (end_name_hash(hash) ^ hash_ptr((void *)ns, 31)); in kernfs_name_hash() 202 const void *ns, const struct kernfs_node *kn) in kernfs_name_compare() argument 206 if (ns != kn->ns) in kernfs_name_compare() 207 return ns - kn->ns; in kernfs_name_compare() 214 return kernfs_name_compare(left->hash, left->name, left->ns, right); in kernfs_sd_compare() 462 kernfs_info(dentry->d_sb)->ns != kn->ns) in kernfs_dop_revalidate() 578 if (WARN(has_ns != (bool)kn->ns, KERN_WARNING "kernfs: ns %s in '%s' for '%s'\n", in kernfs_add_one() 589 kn->hash = kernfs_name_hash(kn->name, kn->ns); in kernfs_add_one() 631 const void *ns) in kernfs_find_ns() argument [all …]
|
D | mount.c | 105 return sb_info->root == info->root && sb_info->ns == info->ns; in kernfs_test_super() 127 return info->ns; in kernfs_super_ns() 148 bool *new_sb_created, const void *ns) in kernfs_mount_ns() argument 159 info->ns = ns; in kernfs_mount_ns() 226 struct super_block *kernfs_pin_sb(struct kernfs_root *root, const void *ns) in kernfs_pin_sb() argument 233 if (info->ns == ns) { in kernfs_pin_sb()
|
D | symlink.c | 37 kn->ns = target->ns; in kernfs_create_link()
|
D | kernfs-internal.h | 66 const void *ns; member
|
/fs/ntfs/ |
D | unistr.c | 340 unsigned char *ns; in ntfs_ucstonls() local 345 ns = *outs; in ntfs_ucstonls() 347 if (ns && !ns_len) { in ntfs_ucstonls() 351 if (!ns) { in ntfs_ucstonls() 353 ns = kmalloc(ns_len + 1, GFP_NOFS); in ntfs_ucstonls() 354 if (!ns) in ntfs_ucstonls() 358 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls() 365 else if (wc == -ENAMETOOLONG && ns != *outs) { in ntfs_ucstonls() 371 memcpy(tc, ns, ns_len); in ntfs_ucstonls() 373 kfree(ns); in ntfs_ucstonls() [all …]
|
/fs/sysfs/ |
D | mount.c | 30 void *ns; in sysfs_mount() local 38 ns = kobj_ns_grab_current(KOBJ_NS_TYPE_NET); in sysfs_mount() 40 SYSFS_MAGIC, &new_sb, ns); in sysfs_mount() 42 kobj_ns_drop(KOBJ_NS_TYPE_NET, ns); in sysfs_mount() 48 void *ns = (void *)kernfs_super_ns(sb); in sysfs_kill_sb() local 51 kobj_ns_drop(KOBJ_NS_TYPE_NET, ns); in sysfs_kill_sb()
|
D | symlink.c | 123 const void *ns = NULL; in sysfs_delete_link() local 132 ns = targ->sd->ns; in sysfs_delete_link() 134 kernfs_remove_by_name_ns(kobj->sd, name, ns); in sysfs_delete_link() 178 old_ns = targ->sd->ns; in sysfs_rename_link_ns()
|
D | file.c | 208 umode_t mode, const void *ns) in sysfs_add_file_mode_ns() argument 257 (void *)attr, ns, true, key); in sysfs_add_file_mode_ns() 279 const void *ns) in sysfs_create_file_ns() argument 283 return sysfs_add_file_mode_ns(kobj->sd, attr, false, attr->mode, ns); in sysfs_create_file_ns() 368 const void *ns) in sysfs_remove_file_ns() argument 372 kernfs_remove_by_name_ns(parent, attr->name, ns); in sysfs_remove_file_ns()
|
D | dir.c | 41 int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns() argument 56 S_IRWXU | S_IRUGO | S_IXUGO, kobj, ns); in sysfs_create_dir_ns()
|
D | sysfs.h | 35 umode_t amode, const void *ns);
|
/fs/ |
D | proc_namespace.c | 21 struct mnt_namespace *ns = p->ns; in mounts_poll() local 25 poll_wait(file, &p->ns->poll, wait); in mounts_poll() 27 event = ACCESS_ONCE(ns->event); in mounts_poll() 232 struct mnt_namespace *ns = NULL; in mounts_open_common() local 247 ns = nsp->mnt_ns; in mounts_open_common() 248 get_mnt_ns(ns); in mounts_open_common() 269 p->ns = ns; in mounts_open_common() 271 p->m.poll_event = ns->event; in mounts_open_common() 282 put_mnt_ns(ns); in mounts_open_common() 291 put_mnt_ns(p->ns); in mounts_release()
|
D | namespace.c | 690 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint() local 698 list_for_each_entry(mnt, &ns->list, mnt_list) { in __is_local_mountpoint() 769 static void touch_mnt_namespace(struct mnt_namespace *ns) in touch_mnt_namespace() argument 771 if (ns) { in touch_mnt_namespace() 772 ns->event = ++event; in touch_mnt_namespace() 773 wake_up_interruptible(&ns->poll); in touch_mnt_namespace() 780 static void __touch_mnt_namespace(struct mnt_namespace *ns) in __touch_mnt_namespace() argument 782 if (ns && ns->event != event) { in __touch_mnt_namespace() 783 ns->event = event; in __touch_mnt_namespace() 784 wake_up_interruptible(&ns->poll); in __touch_mnt_namespace() [all …]
|
D | mount.h | 99 static inline void get_mnt_ns(struct mnt_namespace *ns) in get_mnt_ns() argument 101 atomic_inc(&ns->count); in get_mnt_ns() 118 struct mnt_namespace *ns; member
|
/fs/ncpfs/ |
D | ncplib_kernel.c | 454 __u8 ns, __u8 volnum, __le32 dirent, in ncp_obtain_DOS_dir_base() argument 462 ncp_add_byte(server, ns); in ncp_obtain_DOS_dir_base() 463 ncp_add_byte(server, ns); in ncp_obtain_DOS_dir_base() 528 int ns = ncp_get_known_namespace(server, volume); in ncp_update_known_namespace() local 531 *ret_ns = ns; in ncp_update_known_namespace() 535 if (server->name_space[volume] == ns) in ncp_update_known_namespace() 537 server->name_space[volume] = ns; in ncp_update_known_namespace() 710 const char* name, __u8 ns, __le16 attr) in ncp_DeleteNSEntry() argument 716 ncp_add_byte(server, ns); in ncp_DeleteNSEntry()
|
/fs/ocfs2/cluster/ |
D | nodemanager.c | 806 struct o2nm_node_group *ns = NULL; in o2nm_cluster_group_make_group() local 816 ns = kzalloc(sizeof(struct o2nm_node_group), GFP_KERNEL); in o2nm_cluster_group_make_group() 819 if (cluster == NULL || ns == NULL || o2hb_group == NULL || defs == NULL) in o2nm_cluster_group_make_group() 824 config_group_init_type_name(&ns->ns_group, "node", in o2nm_cluster_group_make_group() 828 cluster->cl_group.default_groups[0] = &ns->ns_group; in o2nm_cluster_group_make_group() 844 kfree(ns); in o2nm_cluster_group_make_group()
|
/fs/lockd/ |
D | mon.c | 320 s64 ns; in nsm_init_private() local 322 ns = ktime_get_ns(); in nsm_init_private() 323 put_unaligned(ns, p); in nsm_init_private()
|