Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 24 of 24) sorted by relevance

/fs/proc/
Droot.c34 struct pid_namespace *ns = (struct pid_namespace *)data; in proc_set_super() local
35 sb->s_fs_info = get_pid_ns(ns); in proc_set_super()
102 struct pid_namespace *ns; in proc_mount() local
107 ns = (struct pid_namespace *)data; in proc_mount()
110 ns = current->nsproxy->pid_ns; in proc_mount()
114 sb = sget(fs_type, proc_test_super, proc_set_super, ns); in proc_mount()
118 if (!proc_parse_options(options, ns)) { in proc_mount()
137 ei->pid = get_pid(find_pid_ns(1, ns)); in proc_mount()
146 struct pid_namespace *ns; in proc_kill_sb() local
148 ns = (struct pid_namespace *)sb->s_fs_info; in proc_kill_sb()
[all …]
Dnamespaces.c66 void *ns; in proc_ns_get_dentry() local
68 ns = ns_ops->get(task); in proc_ns_get_dentry()
69 if (!ns) in proc_ns_get_dentry()
74 ns_ops->put(ns); in proc_ns_get_dentry()
78 inode = iget_locked(sb, ns_ops->inum(ns)); in proc_ns_get_dentry()
81 ns_ops->put(ns); in proc_ns_get_dentry()
92 ei->ns = ns; in proc_ns_get_dentry()
95 ns_ops->put(ns); in proc_ns_get_dentry()
146 void *ns; in proc_ns_readlink() local
158 ns = ns_ops->get(task); in proc_ns_readlink()
[all …]
Darray.c161 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() argument
172 task_tgid_nr_ns(rcu_dereference(p->real_parent), ns) : 0; in task_state()
177 tpid = task_pid_nr_ns(tracer, ns); in task_state()
189 task_tgid_nr_ns(p, ns), in task_state()
190 pid_nr_ns(pid, ns), in task_state()
340 int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, in proc_pid_status() argument
346 task_state(m, ns, pid, task); in proc_pid_status()
360 static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, in do_task_stat() argument
405 tty_pgrp = pid_nr_ns(pgrp, ns); in do_task_stat()
436 sid = task_session_nr_ns(task, ns); in do_task_stat()
[all …]
Dinternal.h49 extern int proc_tid_stat(struct seq_file *m, struct pid_namespace *ns,
51 extern int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns,
53 extern int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
55 extern int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
Dproc_net.c106 struct nsproxy *ns; in get_proc_task_net() local
112 ns = task_nsproxy(task); in get_proc_task_net()
113 if (ns != NULL) in get_proc_task_net()
114 net = get_net(ns->net_ns); in get_proc_task_net()
Dbase.c305 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack() argument
651 struct pid_namespace *ns; in proc_single_show() local
656 ns = inode->i_sb->s_fs_info; in proc_single_show()
662 ret = PROC_I(inode)->op.proc_show(m, ns, pid, task); in proc_single_show()
2749 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_self_readlink() local
2750 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_readlink()
2760 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_self_follow_link() local
2761 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_follow_link()
2938 static int proc_pid_personality(struct seq_file *m, struct pid_namespace *ns, in proc_pid_personality() argument
3146 proc_flush_task_mnt(upid->ns->proc_mnt, upid->nr, in proc_flush_task()
[all …]
Dinode.c34 void *ns; in proc_evict_inode() local
53 ns = PROC_I(inode)->ns; in proc_evict_inode()
54 if (ns_ops && ns) in proc_evict_inode()
55 ns_ops->put(ns); in proc_evict_inode()
74 ei->ns = NULL; in proc_alloc_inode()
/fs/ntfs/
Dunistr.c340 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/
Ddir.c43 static unsigned int sysfs_name_hash(const void *ns, const char *name) in sysfs_name_hash() argument
49 hash = ( end_name_hash(hash) ^ hash_ptr( (void *)ns, 31 ) ); in sysfs_name_hash()
59 static int sysfs_name_compare(unsigned int hash, const void *ns, in sysfs_name_compare() argument
64 if (ns != sd->s_ns) in sysfs_name_compare()
65 return ns - sd->s_ns; in sysfs_name_compare()
592 const void *ns, in sysfs_find_dirent() argument
598 if (!!sysfs_ns_type(parent_sd) != !!ns) { in sysfs_find_dirent()
605 hash = sysfs_name_hash(ns, name); in sysfs_find_dirent()
611 result = sysfs_name_compare(hash, ns, name, sd); in sysfs_find_dirent()
637 const void *ns, in sysfs_get_dirent() argument
[all …]
Dfile.c493 const void *ns = NULL; in sysfs_attr_ns() local
516 ns = ops->namespace(kobj, attr); in sysfs_attr_ns()
522 *pns = ns; in sysfs_attr_ns()
532 const void *ns; in sysfs_add_file_mode() local
535 rc = sysfs_attr_ns(dir_sd->s_dir.kobj, attr, &ns); in sysfs_add_file_mode()
543 sd->s_ns = ns; in sysfs_add_file_mode()
631 const void *ns; in sysfs_chmod_file() local
634 rc = sysfs_attr_ns(kobj, attr, &ns); in sysfs_chmod_file()
641 sd = sysfs_find_dirent(kobj->sd, ns, attr->name); in sysfs_chmod_file()
666 const void *ns; in sysfs_remove_file() local
[all …]
Dsysfs.h149 void *ns[KOBJ_NS_TYPES]; member
175 const void *ns,
178 const void *ns,
189 struct sysfs_dirent *new_parent_sd, const void *ns, const char *new_name);
219 int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns, const char *name);
Dmount.c82 if (sb_info->ns[type] != info->ns[type]) in sysfs_test_super()
101 kobj_ns_drop(type, info->ns[type]); in free_sysfs_super_info()
118 info->ns[type] = kobj_ns_grab_current(type); in sysfs_mount()
Dsymlink.c137 const void *ns = NULL; in sysfs_delete_link() local
140 ns = targ->sd->s_ns; in sysfs_delete_link()
142 sysfs_hash_and_remove(kobj->sd, ns, name); in sysfs_delete_link()
Dinode.c317 int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns, const char *name) in sysfs_hash_and_remove() argument
330 sd = sysfs_find_dirent(dir_sd, ns, name); in sysfs_hash_and_remove()
/fs/
Dproc_namespace.c21 struct mnt_namespace *ns = p->ns; in mounts_poll() local
24 poll_wait(file, &p->ns->poll, wait); in mounts_poll()
27 if (p->m.poll_event != ns->event) { in mounts_poll()
28 p->m.poll_event = ns->event; in mounts_poll()
227 struct mnt_namespace *ns = NULL; in mounts_open_common() local
242 ns = nsp->mnt_ns; in mounts_open_common()
243 if (!ns) { in mounts_open_common()
248 get_mnt_ns(ns); in mounts_open_common()
271 p->ns = ns; in mounts_open_common()
273 p->m.poll_event = ns->event; in mounts_open_common()
[all …]
Dnamespace.c559 static void touch_mnt_namespace(struct mnt_namespace *ns) in touch_mnt_namespace() argument
561 if (ns) { in touch_mnt_namespace()
562 ns->event = ++event; in touch_mnt_namespace()
563 wake_up_interruptible(&ns->poll); in touch_mnt_namespace()
570 static void __touch_mnt_namespace(struct mnt_namespace *ns) in __touch_mnt_namespace() argument
572 if (ns && ns->event != event) { in __touch_mnt_namespace()
573 ns->event = event; in __touch_mnt_namespace()
574 wake_up_interruptible(&ns->poll); in __touch_mnt_namespace()
948 return seq_list_start(&p->ns->list, *pos); in m_start()
955 return seq_list_next(v, &p->ns->list, pos); in m_next()
[all …]
Dmount.h74 static inline void get_mnt_ns(struct mnt_namespace *ns) in get_mnt_ns() argument
76 atomic_inc(&ns->count); in get_mnt_ns()
81 struct mnt_namespace *ns; member
Dpnode.c32 struct mnt_namespace *ns, in get_peer_under_root() argument
39 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root()
Dinode.c1759 struct user_namespace *ns = inode_userns(inode); in inode_owner_or_capable() local
1761 if (current_user_ns() == ns && current_fsuid() == inode->i_uid) in inode_owner_or_capable()
1763 if (ns_capable(ns, CAP_FOWNER)) in inode_owner_or_capable()
/fs/ncpfs/
Dncplib_kernel.c455 __u8 ns, __u8 volnum, __le32 dirent, in ncp_obtain_DOS_dir_base() argument
463 ncp_add_byte(server, ns); in ncp_obtain_DOS_dir_base()
464 ncp_add_byte(server, ns); in ncp_obtain_DOS_dir_base()
529 int ns = ncp_get_known_namespace(server, volume); in ncp_update_known_namespace() local
532 *ret_ns = ns; in ncp_update_known_namespace()
537 if (server->name_space[volume] == ns) in ncp_update_known_namespace()
539 server->name_space[volume] = ns; in ncp_update_known_namespace()
712 const char* name, __u8 ns, __le16 attr) in ncp_DeleteNSEntry() argument
718 ncp_add_byte(server, ns); in ncp_DeleteNSEntry()
Ddir.c96 int ns = ncp_namespace(i); in ncp_preserve_entry_case() local
98 if ((ns == NW_NS_DOS) in ncp_preserve_entry_case()
100 || ((ns == NW_NS_OS2) && (nscreator == NW_NS_DOS)) in ncp_preserve_entry_case()
/fs/ocfs2/cluster/
Dnodemanager.c807 struct o2nm_node_group *ns = NULL; in o2nm_cluster_group_make_group() local
817 ns = kzalloc(sizeof(struct o2nm_node_group), GFP_KERNEL); in o2nm_cluster_group_make_group()
820 if (cluster == NULL || ns == NULL || o2hb_group == NULL || defs == NULL) in o2nm_cluster_group_make_group()
825 config_group_init_type_name(&ns->ns_group, "node", in o2nm_cluster_group_make_group()
829 cluster->cl_group.default_groups[0] = &ns->ns_group; in o2nm_cluster_group_make_group()
845 kfree(ns); in o2nm_cluster_group_make_group()
/fs/lockd/
Dmon.c254 s64 ns; in nsm_init_private() local
257 ns = timespec_to_ns(&ts); in nsm_init_private()
258 put_unaligned(ns, p); in nsm_init_private()
/fs/jfs/
Djfs_dtree.c4085 int xssi, ns, nd; in dtMoveEntry() local
4106 ns = nd = 0; in dtMoveEntry()
4114 slv->length = ns; in dtMoveEntry()
4126 ns = 0; in dtMoveEntry()
4174 ns++; in dtMoveEntry()
4186 slv->length = ns; in dtMoveEntry()
4200 ns = 0; in dtMoveEntry()
4212 ns++; in dtMoveEntry()
4241 slv->length = ns; in dtMoveEntry()