• Home
  • Raw
  • Download

Lines Matching refs:net

141 static int exports_net_open(struct net *net, struct file *file)  in exports_net_open()  argument
145 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in exports_net_open()
237 static inline struct net *netns(struct file *file) in netns()
262 struct net *net = netns(file); in write_unlock_ip() local
275 if (rpc_pton(net, fo_path, size, sap, salen) == 0) in write_unlock_ip()
438 struct net *net = netns(file); in write_threads() local
447 rv = nfsd_svc(newthreads, net, file->f_cred); in write_threads()
451 rv = nfsd_nrthreads(net); in write_threads()
489 struct net *net = netns(file); in write_pool_threads() local
492 npools = nfsd_nrpools(net); in write_pool_threads()
520 rv = nfsd_set_nrthreads(i, nthreads, net); in write_pool_threads()
525 rv = nfsd_get_nrthreads(npools, nthreads, net); in write_pool_threads()
711 static ssize_t __write_ports_names(char *buf, struct net *net) in __write_ports_names() argument
713 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in __write_ports_names()
725 static ssize_t __write_ports_addfd(char *buf, struct net *net, const struct cred *cred) in __write_ports_addfd() argument
729 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in __write_ports_addfd()
735 if (svc_alien_sock(net, fd)) { in __write_ports_addfd()
740 err = nfsd_create_serv(net); in __write_ports_addfd()
746 nfsd_destroy(net); in __write_ports_addfd()
759 static ssize_t __write_ports_addxprt(char *buf, struct net *net, const struct cred *cred) in __write_ports_addxprt() argument
764 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in __write_ports_addxprt()
772 err = nfsd_create_serv(net); in __write_ports_addxprt()
776 err = svc_create_xprt(nn->nfsd_serv, transport, net, in __write_ports_addxprt()
781 err = svc_create_xprt(nn->nfsd_serv, transport, net, in __write_ports_addxprt()
790 xprt = svc_find_xprt(nn->nfsd_serv, transport, net, PF_INET, port); in __write_ports_addxprt()
799 nfsd_destroy(net); in __write_ports_addxprt()
804 struct net *net) in __write_ports() argument
807 return __write_ports_names(buf, net); in __write_ports()
810 return __write_ports_addfd(buf, net, file->f_cred); in __write_ports()
813 return __write_ports_addxprt(buf, net, file->f_cred); in __write_ports()
1424 struct net *net = sb->s_fs_info; in nfsd_umount() local
1426 nfsd_shutdown_threads(net); in nfsd_umount()
1429 put_net(net); in nfsd_umount()
1464 static __net_init int nfsd_init_net(struct net *net) in nfsd_init_net() argument
1467 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_init_net()
1469 retval = nfsd_export_init(net); in nfsd_init_net()
1472 retval = nfsd_idmap_init(net); in nfsd_init_net()
1496 nfsd_idmap_shutdown(net); in nfsd_init_net()
1498 nfsd_export_shutdown(net); in nfsd_init_net()
1503 static __net_exit void nfsd_exit_net(struct net *net) in nfsd_exit_net() argument
1505 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_exit_net()
1508 nfsd_idmap_shutdown(net); in nfsd_exit_net()
1509 nfsd_export_shutdown(net); in nfsd_exit_net()
1510 nfsd_netns_free_versions(net_generic(net, nfsd_net_id)); in nfsd_exit_net()