static __be32 nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) { dprintk("lockd: UNLOCK_MSG called\n"); return nlmsvc_callback(rqstp, NLMPROC_UNLOCK_RES, argp, nlmsvc_proc_unlock); }
static __be32 nlmsvc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) { dprintk("lockd: GRANTED_MSG called\n"); return nlmsvc_callback(rqstp, NLMPROC_GRANTED_RES, argp, nlmsvc_proc_granted); }
static int nlmsvc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) { struct nlm_res res; u32 stat; dprintk("lockd: GRANTED_MSG called\n"); if ((stat = nlmsvc_proc_granted(rqstp, argp, &res)) == 0) stat = nlmsvc_callback(rqstp, NLMPROC_GRANTED_RES, &res); return stat; }
static int nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) { struct nlm_res res; u32 stat; dprintk("lockd: UNLOCK_MSG called\n"); if ((stat = nlmsvc_proc_unlock(rqstp, argp, &res)) == 0) stat = nlmsvc_callback(rqstp, NLMPROC_UNLOCK_RES, &res); return stat; }
/* * `Async' versions of the above service routines. They aren't really, * because we send the callback before the reply proper. I hope this * doesn't break any clients. */ static int nlmsvc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) { struct nlm_res res; u32 stat; dprintk("lockd: TEST_MSG called\n"); memset(&res, 0, sizeof(res)); if ((stat = nlmsvc_proc_test(rqstp, argp, &res)) == 0) stat = nlmsvc_callback(rqstp, NLMPROC_TEST_RES, &res); return stat; }
static __be32 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) { dprintk("lockd: CANCEL_MSG called\n"); return nlmsvc_callback(rqstp, NLMPROC_CANCEL_RES, argp, nlmsvc_proc_cancel); }
static __be32 nlmsvc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) { dprintk("lockd: TEST_MSG called\n"); return nlmsvc_callback(rqstp, NLMPROC_TEST_RES, argp, nlmsvc_proc_test); }