Lines Matching defs:host
55 struct nlm_host *host = NULL;
64 /* Obtain host handle */
65 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len))
66 || (argp->monitor && nsm_monitor(host) < 0))
68 *hostp = host;
81 nlmsvc_locks_init_private(&lock->fl, host, (pid_t)lock->svid);
84 nlmsvc_release_host(host);
92 nlmsvc_release_host(host);
115 struct nlm_host *host;
123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
127 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie));
135 nlmsvc_release_host(host);
150 struct nlm_host *host;
159 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
167 * NB: We don't retrieve the remote host's state yet.
169 if (host->h_nsmstate && host->h_nsmstate != argp->state) {
175 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock,
184 nlmsvc_release_host(host);
199 struct nlm_host *host;
214 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
222 nlmsvc_release_host(host);
240 struct nlm_host *host;
255 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
263 nlmsvc_release_host(host);
333 struct nlm_host *host;
337 host = nlmsvc_lookup_host(rqstp,
340 if (host == NULL)
343 call = nlm_alloc_call(host);
344 nlmsvc_release_host(host);
400 struct nlm_host *host;
414 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
418 resp->status = cast_status(nlmsvc_share_file(host, file, argp));
422 nlmsvc_release_host(host);
435 struct nlm_host *host;
449 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
453 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp));
457 nlmsvc_release_host(host);
483 struct nlm_host *host;
486 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL))
489 nlmsvc_free_host_resources(host);
490 nlmsvc_release_host(host);