| /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() 632 ctx->net = afs_net(fc->net_ns); in afs_init_fs_context()
|
| H A D | internal.h | 249 struct net *net_ns; /* Network namespace */ member 1280 return afs_net(AFS_FS_S(sb)->net_ns); in afs_sb2net()
|
| /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 | 306 net = current->nsproxy->net_ns; in netns_bpf_prog_attach() 395 ret = __netns_bpf_prog_detach(current->nsproxy->net_ns, type, prog); in netns_bpf_prog_detach()
|
| /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/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 | 807 net = get_net(nsproxy->net_ns); in get_net_ns_by_pid() 1523 net = get_net(nsproxy->net_ns); in netns_get() 1543 put_net(nsproxy->net_ns); in netns_install() 1544 nsproxy->net_ns = get_net(net); in netns_install()
|
| H A D | net-sysfs.c | 2162 struct net *net = current->nsproxy->net_ns; in net_current_may_mount() 2169 struct net *net = current->nsproxy->net_ns; in net_grab_current_ns()
|
| /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/ |
| H A D | pidfs.c | 610 if (!ns_ref_get(nsp->net_ns)) in pidfd_ioctl() 612 ns_common = to_ns_common(nsp->net_ns); in pidfd_ioctl()
|
| /linux/net/bpf/ |
| H A D | test_run.c | 1040 struct net *net = current->nsproxy->net_ns; in bpf_prog_test_run_skb() 1293 device = dev_get_by_index(current->nsproxy->net_ns, in xdp_convert_md_to_buff() 1412 rxqueue = __netif_get_rx_queue(current->nsproxy->net_ns->loopback_dev, 0); in bpf_prog_test_run_xdp() 1780 struct net *net = current->nsproxy->net_ns; in bpf_prog_test_run_nf()
|
| /linux/drivers/net/netdevsim/ |
| H A D | bus.c | 464 nsim_bus_dev->initial_net = current->nsproxy->net_ns; in nsim_bus_dev_new()
|
| /linux/fs/nfsd/ |
| H A D | nfsctl.c | 1296 struct nfsd_net *nn = net_generic(current->nsproxy->net_ns, in nfsd_fill_super() 1346 return get_tree_keyed(fc, nfsd_fill_super, get_net(fc->net_ns)); in nfsd_fs_get_tree() 1363 fc->user_ns = get_user_ns(fc->net_ns->user_ns); in nfsd_init_fs_context() 1390 return exports_net_open(current->nsproxy->net_ns, file); in exports_proc_open()
|
| /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()
|
| /linux/net/ceph/ |
| H A D | ceph_common.c | 144 if (!net_eq(current->nsproxy->net_ns, read_pnet(&client->msgr.net))) in ceph_compare_options()
|
| H A D | messenger.c | 1271 ip_len = dns_query(current->nsproxy->net_ns, in ceph_dns_resolve_name() 1695 write_pnet(&msgr->net, get_net(current->nsproxy->net_ns)); in ceph_messenger_init()
|
| /linux/drivers/net/ppp/ |
| H A D | ppp_generic.c | 729 err = ppp_unattached_ioctl(current->nsproxy->net_ns, in ppp_ioctl() 768 pn = ppp_pernet(current->nsproxy->net_ns); in ppp_ioctl() 2903 return ppp_register_net_channel(current->nsproxy->net_ns, chan); in ppp_register_channel()
|
| /linux/fs/nfs/ |
| H A D | nfs4client.c | 977 .net = fc->net_ns, in nfs4_init_server()
|