Lines Matching defs:host
26 struct nlm_host *host = NULL;
39 /* Obtain host handle */
40 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len))
41 || (argp->monitor && nsm_monitor(host) < 0))
43 *hostp = host;
63 nlmsvc_locks_init_private(&lock->fl, host, (pid_t)lock->svid);
66 nlmsvc_release_host(host);
74 nlmsvc_release_host(host);
97 struct nlm_host *host;
106 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
111 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie);
118 nlmsvc_release_host(host);
133 struct nlm_host *host;
142 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
150 * NB: We don't retrieve the remote host's state yet.
152 if (host->h_nsmstate && host->h_nsmstate != argp->state) {
158 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock,
167 nlmsvc_release_host(host);
182 struct nlm_host *host;
196 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
204 nlmsvc_release_host(host);
222 struct nlm_host *host;
236 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
244 nlmsvc_release_host(host);
304 struct nlm_host *host;
308 host = nlmsvc_lookup_host(rqstp,
311 if (host == NULL)
314 call = nlm_alloc_call(host);
315 nlmsvc_release_host(host);
369 struct nlm_host *host;
383 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
387 resp->status = nlmsvc_share_file(host, file, argp);
391 nlmsvc_release_host(host);
404 struct nlm_host *host;
418 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
422 resp->status = nlmsvc_unshare_file(host, file, argp);
426 nlmsvc_release_host(host);
452 struct nlm_host *host;
455 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL))
458 nlmsvc_free_host_resources(host);
459 nlmsvc_release_host(host);