Lines Matching refs:net
18 ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen, in nfs_dns_resolve_name() argument
25 ip_len = dns_query(net, NULL, name, namelen, NULL, &ip_addr, NULL, in nfs_dns_resolve_name()
28 ret = rpc_pton(net, ip_addr, ip_len, sa, salen); in nfs_dns_resolve_name()
245 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse()
343 ssize_t nfs_dns_resolve_name(struct net *net, char *name, in nfs_dns_resolve_name() argument
352 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs_dns_resolve_name()
383 int nfs_dns_resolver_cache_init(struct net *net) in nfs_dns_resolver_cache_init() argument
386 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs_dns_resolver_cache_init()
388 nn->nfs_dns_resolve = cache_create_net(&nfs_dns_resolve_template, net); in nfs_dns_resolver_cache_init()
392 err = nfs_cache_register_net(net, nn->nfs_dns_resolve); in nfs_dns_resolver_cache_init()
398 cache_destroy_net(nn->nfs_dns_resolve, net); in nfs_dns_resolver_cache_init()
402 void nfs_dns_resolver_cache_destroy(struct net *net) in nfs_dns_resolver_cache_destroy() argument
404 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs_dns_resolver_cache_destroy()
406 nfs_cache_unregister_net(net, nn->nfs_dns_resolve); in nfs_dns_resolver_cache_destroy()
407 cache_destroy_net(nn->nfs_dns_resolve, net); in nfs_dns_resolver_cache_destroy()
410 static int nfs4_dns_net_init(struct net *net) in nfs4_dns_net_init() argument
412 return nfs_dns_resolver_cache_init(net); in nfs4_dns_net_init()
415 static void nfs4_dns_net_exit(struct net *net) in nfs4_dns_net_exit() argument
417 nfs_dns_resolver_cache_destroy(net); in nfs4_dns_net_exit()
429 struct net *net = sb->s_fs_info; in rpc_pipefs_event() local
430 struct nfs_net *nn = net_generic(net, nfs_net_id); in rpc_pipefs_event()