Lines Matching refs:net
50 static void nlm_gc_hosts(struct net *net);
61 struct net *net; /* network namespace to bind */ member
119 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host()
163 host->net = ni->net; in nlm_alloc_host()
178 struct lockd_net *ln = net_generic(host->net, lockd_net_id); in nlm_destroy_host_locked()
216 struct net *net) in nlmclnt_lookup_host() argument
227 .net = net, in nlmclnt_lookup_host()
232 struct lockd_net *ln = net_generic(net, lockd_net_id); in nlmclnt_lookup_host()
242 if (host->net != net) in nlmclnt_lookup_host()
330 struct net *net = SVC_NET(rqstp); in nlmsvc_lookup_host() local
339 .net = net, in nlmsvc_lookup_host()
341 struct lockd_net *ln = net_generic(net, lockd_net_id); in nlmsvc_lookup_host()
350 nlm_gc_hosts(net); in nlmsvc_lookup_host()
354 if (host->net != net) in nlmsvc_lookup_host()
448 .net = host->net, in nlm_bind_host()
544 void nlm_host_rebooted(const struct net *net, const struct nlm_reboot *info) in nlm_host_rebooted() argument
549 nsm = nsm_reboot_lookup(net, info); in nlm_host_rebooted()
570 static void nlm_complain_hosts(struct net *net) in nlm_complain_hosts() argument
575 if (net) { in nlm_complain_hosts()
576 struct lockd_net *ln = net_generic(net, lockd_net_id); in nlm_complain_hosts()
580 printk(KERN_WARNING "lockd: couldn't shutdown host module for net %p!\n", net); in nlm_complain_hosts()
581 dprintk("lockd: %lu hosts left in net %p:\n", ln->nrhosts, net); in nlm_complain_hosts()
590 if (net && host->net != net) in nlm_complain_hosts()
594 host->h_inuse, host->h_expires, host->net); in nlm_complain_hosts()
599 nlm_shutdown_hosts_net(struct net *net) in nlm_shutdown_hosts_net() argument
607 dprintk("lockd: nuking all hosts in net %p...\n", net); in nlm_shutdown_hosts_net()
609 if (net && host->net != net) in nlm_shutdown_hosts_net()
619 nlm_gc_hosts(net); in nlm_shutdown_hosts_net()
622 nlm_complain_hosts(net); in nlm_shutdown_hosts_net()
642 nlm_gc_hosts(struct net *net) in nlm_gc_hosts() argument
648 dprintk("lockd: host garbage collection for net %p\n", net); in nlm_gc_hosts()
650 if (net && host->net != net) in nlm_gc_hosts()
656 nlmsvc_mark_resources(net); in nlm_gc_hosts()
659 if (net && host->net != net) in nlm_gc_hosts()
666 host->h_inuse, host->h_expires, host->net); in nlm_gc_hosts()
672 if (net) { in nlm_gc_hosts()
673 struct lockd_net *ln = net_generic(net, lockd_net_id); in nlm_gc_hosts()