| /linux/fs/afs/ |
| H A D | mntpt.c | 80 if (fc->net_ns != src_as->net_ns) { in afs_mntpt_set_params() 81 put_net(fc->net_ns); in afs_mntpt_set_params() 82 fc->net_ns = get_net(src_as->net_ns); in afs_mntpt_set_params()
|
| H A D | main.c | 65 static int __net_init afs_net_init(struct net *net_ns) in afs_net_init() argument 68 struct afs_net *net = afs_net(net_ns); in afs_net_init() 71 net->net = net_ns; in afs_net_init() 141 static void __net_exit afs_net_exit(struct net *net_ns) in afs_net_exit() argument 143 struct afs_net *net = afs_net(net_ns); in afs_net_exit()
|
| H A D | super.c | 425 return (as->net_ns == fc->net_ns && in afs_test_super() 436 return (as->net_ns == fc->net_ns && in afs_dynroot_test_super() 507 as->net_ns = get_net(fc->net_ns); in afs_alloc_sbi() 525 put_net(as->net_ns); in afs_destroy_sbi() 631 ctx->net = afs_net(fc->net_ns); in afs_init_fs_context()
|
| /linux/fs/lockd/ |
| H A D | procfs.c | 25 struct lockd_net *ln = net_generic(current->nsproxy->net_ns, in nlm_end_grace_write() 52 struct lockd_net *ln = net_generic(current->nsproxy->net_ns, in nlm_end_grace_read()
|
| /linux/kernel/bpf/ |
| H A D | tcx.c | 13 struct net *net = current->nsproxy->net_ns; in tcx_prog_attach() 62 struct net *net = current->nsproxy->net_ns; in tcx_prog_detach() 125 struct net *net = current->nsproxy->net_ns; in tcx_prog_query() 312 struct net *net = current->nsproxy->net_ns; in tcx_link_attach()
|
| H A D | net_namespace.c | 311 net = current->nsproxy->net_ns; in netns_bpf_prog_attach() 400 ret = __netns_bpf_prog_detach(current->nsproxy->net_ns, type, prog); in netns_bpf_prog_detach()
|
| H A D | devmap.c | 975 return __dev_map_update_elem(current->nsproxy->net_ns, in dev_map_update_elem() 1035 return __dev_map_hash_update_elem(current->nsproxy->net_ns, in dev_map_hash_update_elem()
|
| /linux/net/ |
| H A D | sysctl_net.c | 33 return ¤t->nsproxy->net_ns->sysctls; in net_ctl_header_lookup() 38 return ¤t->nsproxy->net_ns->sysctls == set; in is_seen()
|
| /linux/fs/nfs/ |
| H A D | namespace.c | 178 if (fc->net_ns != client->cl_net) { in nfs_d_automount() 179 put_net(fc->net_ns); in nfs_d_automount() 180 fc->net_ns = get_net(client->cl_net); in nfs_d_automount()
|
| H A D | fs_context.c | 919 len = rpc_pton(fc->net_ns, param->string, param->size, in nfs_fs_context_parse_param() 940 len = rpc_pton(fc->net_ns, param->string, param->size, in nfs_fs_context_parse_param() 963 if (fc->net_ns != &init_net) in nfs_fs_context_parse_param() 1732 if (fc->net_ns != net) { in nfs_init_fs_context() 1733 put_net(fc->net_ns); in nfs_init_fs_context() 1734 fc->net_ns = get_net(net); in nfs_init_fs_context() 1756 if (fc->net_ns != &init_net) in nfs_init_fs_context()
|
| H A D | nfs4namespace.c | 337 fc->net_ns, 0); in try_location()
|
| /linux/include/linux/ |
| H A D | nsfs.h | 31 struct net *: current->nsproxy->net_ns, \
|
| H A D | nsproxy.h | 38 struct net *net_ns; member
|
| H A D | fs_context.h | 98 struct net *net_ns; /* The network namespace for this mount */ member
|
| /linux/fs/smb/client/ |
| H A D | dns_resolve.c | 28 rc = dns_query(current->nsproxy->net_ns, NULL, name, in resolve_name()
|
| /linux/net/core/ |
| H A D | net_namespace.c | 803 net = get_net(nsproxy->net_ns); in get_net_ns_by_pid() 1518 net = get_net(nsproxy->net_ns); in netns_get() 1538 put_net(nsproxy->net_ns); in netns_install() 1539 nsproxy->net_ns = get_net(net); in netns_install()
|
| H A D | netpoll.c | 728 struct net *net = current->nsproxy->net_ns; in netpoll_setup()
|
| /linux/net/9p/ |
| H A D | trans_fd.c | 890 err = inet_pton_with_scope(current->nsproxy->net_ns, AF_UNSPEC, addr, in p9_fd_create_tcp() 899 err = __sock_create(current->nsproxy->net_ns, stor.ss_family, in p9_fd_create_tcp() 951 err = __sock_create(current->nsproxy->net_ns, PF_UNIX, in p9_fd_create_unix()
|
| /linux/fs/ |
| H A D | nsfs.c | 699 ns_ref_active_get(ns->net_ns); in nsproxy_ns_active_get() 711 ns_ref_active_put(ns->net_ns); in nsproxy_ns_active_put()
|
| H A D | pidfs.c | 603 if (!ns_ref_get(nsp->net_ns)) in pidfd_ioctl() 605 ns_common = to_ns_common(nsp->net_ns); in pidfd_ioctl()
|
| /linux/net/netfilter/ |
| H A D | nf_bpf_link.c | 212 struct net *net = current->nsproxy->net_ns; in bpf_nf_link_attach()
|
| /linux/fs/nfsd/ |
| H A D | nfsctl.c | 1288 struct nfsd_net *nn = net_generic(current->nsproxy->net_ns, in nfsd_fill_super() 1338 return get_tree_keyed(fc, nfsd_fill_super, get_net(fc->net_ns)); in nfsd_fs_get_tree() 1355 fc->user_ns = get_user_ns(fc->net_ns->user_ns); in nfsd_init_fs_context() 1382 return exports_net_open(current->nsproxy->net_ns, file); in exports_proc_open()
|
| /linux/fs/smb/server/ |
| H A D | transport_rdma.c | 377 struct net *net = current->nsproxy->net_ns; in smb_direct_listen()
|
| /linux/net/sunrpc/ |
| H A D | rpc_pipe.c | 1166 return get_tree_keyed(fc, rpc_fill_super, get_net(fc->net_ns)); in rpc_fs_get_tree() 1183 fc->user_ns = get_user_ns(fc->net_ns->user_ns); in rpc_init_fs_context()
|
| /linux/drivers/infiniband/core/ |
| H A D | user_mad.c | 1016 if (!rdma_dev_access_netns(port->ib_dev, current->nsproxy->net_ns)) { in ib_umad_open() 1113 if (!rdma_dev_access_netns(port->ib_dev, current->nsproxy->net_ns)) { in ib_umad_sm_open()
|