Lines Matching defs:host

26 	struct nlm_host		*host = NULL;
35 /* Obtain host handle */
36 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len))
37 || (argp->monitor && nsm_monitor(host) < 0))
39 *hostp = host;
51 nlmsvc_locks_init_private(&lock->fl, host, (pid_t)lock->svid);
54 nlmsvc_release_host(host);
62 nlmsvc_release_host(host);
85 struct nlm_host *host;
93 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie);
104 nlmsvc_release_host(host);
119 struct nlm_host *host;
128 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
136 * NB: We don't retrieve the remote host's state yet.
138 if (host->h_nsmstate && host->h_nsmstate != argp->state) {
144 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock,
153 nlmsvc_release_host(host);
168 struct nlm_host *host;
182 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
190 nlmsvc_release_host(host);
208 struct nlm_host *host;
222 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
230 nlmsvc_release_host(host);
292 struct nlm_host *host;
296 host = nlmsvc_lookup_host(rqstp,
299 if (host == NULL)
302 call = nlm_alloc_call(host);
303 nlmsvc_release_host(host);
357 struct nlm_host *host;
371 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
375 resp->status = nlmsvc_share_file(host, file, argp);
379 nlmsvc_release_host(host);
392 struct nlm_host *host;
406 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
410 resp->status = nlmsvc_unshare_file(host, file, argp);
414 nlmsvc_release_host(host);
440 struct nlm_host *host;
443 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL))
446 nlmsvc_free_host_resources(host);
447 nlmsvc_release_host(host);