Lines Matching defs:file
20 * Obtain client and file from arguments
27 struct nlm_file *file = NULL;
41 /* Obtain file pointer. Not used by FREE_ALL call. */
43 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0)
45 *filp = file;
48 lock->fl.fl_file = file->f_file;
86 struct nlm_file *file;
92 /* Obtain client and file */
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);
105 nlm_release_file(file);
120 struct nlm_file *file;
127 /* Obtain client and file */
128 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
143 /* Now try to lock the file */
144 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock,
154 nlm_release_file(file);
169 struct nlm_file *file;
181 /* Obtain client and file */
182 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
186 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock);
191 nlm_release_file(file);
209 struct nlm_file *file;
221 /* Obtain client and file */
222 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
226 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock);
231 nlm_release_file(file);
358 struct nlm_file *file;
370 /* Obtain client and file */
371 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
375 resp->status = nlmsvc_share_file(host, file, argp);
380 nlm_release_file(file);
393 struct nlm_file *file;
405 /* Obtain client and file */
406 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
409 /* Now try to lock the file */
410 resp->status = nlmsvc_unshare_file(host, file, argp);
415 nlm_release_file(file);