示例#1
0
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);
}
示例#2
0
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);
}
示例#3
0
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;
}
示例#4
0
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;
}
示例#5
0
/*
 * `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;
}
示例#6
0
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);
}
示例#7
0
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);
}