Lines Matching defs:host

55 	struct nlm_host		*host = NULL;
65 /* Obtain host handle */
66 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len))
67 || (argp->monitor && nsm_monitor(host) < 0))
69 *hostp = host;
84 nlmsvc_locks_init_private(&lock->fl, host, (pid_t)lock->svid);
87 nlmsvc_release_host(host);
95 nlmsvc_release_host(host);
118 struct nlm_host *host;
127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
133 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie));
141 nlmsvc_release_host(host);
156 struct nlm_host *host;
165 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
173 * NB: We don't retrieve the remote host's state yet.
175 if (host->h_nsmstate && host->h_nsmstate != argp->state) {
181 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock,
190 nlmsvc_release_host(host);
205 struct nlm_host *host;
220 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
228 nlmsvc_release_host(host);
246 struct nlm_host *host;
261 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
269 nlmsvc_release_host(host);
337 struct nlm_host *host;
341 host = nlmsvc_lookup_host(rqstp,
344 if (host == NULL)
347 call = nlm_alloc_call(host);
348 nlmsvc_release_host(host);
404 struct nlm_host *host;
418 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
422 resp->status = cast_status(nlmsvc_share_file(host, file, argp));
426 nlmsvc_release_host(host);
439 struct nlm_host *host;
453 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
457 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp));
461 nlmsvc_release_host(host);
487 struct nlm_host *host;
490 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL))
493 nlmsvc_free_host_resources(host);
494 nlmsvc_release_host(host);