Lines Matching defs:file

49  * Obtain client and file from arguments
56 struct nlm_file *file = NULL;
70 /* Obtain file pointer. Not used by FREE_ALL call. */
72 error = cast_status(nlm_lookup_file(rqstp, &file, &lock->fh));
75 *filp = file;
78 lock->fl.fl_file = file->f_file;
116 struct nlm_file *file;
122 /* Obtain client and file */
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));
136 nlm_release_file(file);
151 struct nlm_file *file;
158 /* Obtain client and file */
159 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
174 /* Now try to lock the file */
175 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock,
185 nlm_release_file(file);
200 struct nlm_file *file;
213 /* Obtain client and file */
214 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
218 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock));
223 nlm_release_file(file);
241 struct nlm_file *file;
254 /* Obtain client and file */
255 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
259 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock));
264 nlm_release_file(file);
401 struct nlm_file *file;
413 /* Obtain client and file */
414 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
418 resp->status = cast_status(nlmsvc_share_file(host, file, argp));
423 nlm_release_file(file);
436 struct nlm_file *file;
448 /* Obtain client and file */
449 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
452 /* Now try to unshare the file */
453 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp));
458 nlm_release_file(file);