Lines Matching full:result
96 * calls return no result - we just fire off a udp packet
162 syslog(LOG_ERR, "Unable to return result to %s", in get_client()
192 * Purpose: Transmit result for nlm_xxx_msg pseudo-RPCs
196 * without expecting a result
199 transmit_result(int opcode, nlm_res *result, struct sockaddr_in *addr) in transmit_result() argument
211 result, xdr_void, &dummy, timeo); in transmit_result()
220 * Purpose: Transmit result for nlm4_xxx_msg pseudo-RPCs
224 * without expecting a result
227 transmit4_result(int opcode, nlm4_res *result, struct sockaddr_in *addr) in transmit4_result() argument
239 result, xdr_void, &dummy, timeo); in transmit4_result()
265 * The first are standard RPCs with argument and result.
268 * standard use of the RPC protocol in that they do not return a result
269 * at all (NB. this is quite different from returning a void result).
278 * avoiding the block-until-result nature of the library interface.
294 static nlm_testres result; in nlm_test_1_svc() local
304 * Copy the cookie from the argument into the result. Note that this in nlm_test_1_svc()
307 * main function transmits the result before freeing the argument in nlm_test_1_svc()
310 result.cookie = arg->cookie; in nlm_test_1_svc()
312 result.stat.stat = nlm_granted; in nlm_test_1_svc()
314 result.stat.stat = nlm_denied; in nlm_test_1_svc()
315 memcpy(&result.stat.nlm_testrply_u.holder, holder, in nlm_test_1_svc()
317 result.stat.nlm_testrply_u.holder.l_offset = in nlm_test_1_svc()
319 result.stat.nlm_testrply_u.holder.l_len = in nlm_test_1_svc()
322 return &result; in nlm_test_1_svc()
328 nlm_testres result; in nlm_test_msg_1_svc() local
344 result.cookie = arg->cookie; in nlm_test_msg_1_svc()
346 result.stat.stat = nlm_granted; in nlm_test_msg_1_svc()
348 result.stat.stat = nlm_denied; in nlm_test_msg_1_svc()
349 memcpy(&result.stat.nlm_testrply_u.holder, holder, in nlm_test_msg_1_svc()
351 result.stat.nlm_testrply_u.holder.l_offset = in nlm_test_msg_1_svc()
353 result.stat.nlm_testrply_u.holder.l_len = in nlm_test_msg_1_svc()
358 * nlm_test has different result type to the other operations, so in nlm_test_msg_1_svc()
367 &result, xdr_void, &dummy, timeo); in nlm_test_msg_1_svc()
384 static nlm_res result; in nlm_lock_1_svc() local
396 /* copy cookie from arg to result. See comment in nlm_test_1() */ in nlm_lock_1_svc()
397 result.cookie = arg->cookie; in nlm_lock_1_svc()
399 result.stat.stat = getlock(&arg4, rqstp, LOCK_MON); in nlm_lock_1_svc()
400 return &result; in nlm_lock_1_svc()
406 static nlm_res result; in nlm_lock_msg_1_svc() local
419 result.cookie = arg->cookie; in nlm_lock_msg_1_svc()
420 result.stat.stat = getlock(&arg4, rqstp, LOCK_ASYNC | LOCK_MON); in nlm_lock_msg_1_svc()
421 transmit_result(NLM_LOCK_RES, &result, svc_getcaller(rqstp->rq_xprt)); in nlm_lock_msg_1_svc()
435 static nlm_res result; in nlm_cancel_1_svc() local
443 /* copy cookie from arg to result. See comment in nlm_test_1() */ in nlm_cancel_1_svc()
444 result.cookie = arg->cookie; in nlm_cancel_1_svc()
450 result.stat.stat = unlock(&arg4, LOCK_CANCEL); in nlm_cancel_1_svc()
451 return &result; in nlm_cancel_1_svc()
457 static nlm_res result; in nlm_cancel_msg_1_svc() local
465 result.cookie = arg->cookie; in nlm_cancel_msg_1_svc()
470 result.stat.stat = unlock(&arg4, LOCK_CANCEL); in nlm_cancel_msg_1_svc()
471 transmit_result(NLM_CANCEL_RES, &result, svc_getcaller(rqstp->rq_xprt)); in nlm_cancel_msg_1_svc()
486 static nlm_res result; in nlm_unlock_1_svc() local
494 result.stat.stat = unlock(&arg4, 0); in nlm_unlock_1_svc()
495 result.cookie = arg->cookie; in nlm_unlock_1_svc()
497 return &result; in nlm_unlock_1_svc()
503 static nlm_res result; in nlm_unlock_msg_1_svc() local
511 result.stat.stat = unlock(&arg4, 0); in nlm_unlock_msg_1_svc()
512 result.cookie = arg->cookie; in nlm_unlock_msg_1_svc()
514 transmit_result(NLM_UNLOCK_RES, &result, svc_getcaller(rqstp->rq_xprt)); in nlm_unlock_msg_1_svc()
522 * version returns the results in the RPC result, and so the client
539 static nlm_res result; in nlm_granted_1_svc() local
544 /* copy cookie from arg to result. See comment in nlm_test_1() */ in nlm_granted_1_svc()
545 result.cookie = arg->cookie; in nlm_granted_1_svc()
547 result.stat.stat = nlm_granted; in nlm_granted_1_svc()
548 return &result; in nlm_granted_1_svc()
554 static nlm_res result; in nlm_granted_msg_1_svc() local
559 result.cookie = arg->cookie; in nlm_granted_msg_1_svc()
560 result.stat.stat = nlm_granted; in nlm_granted_msg_1_svc()
561 transmit_result(NLM_GRANTED_RES, &result, svc_getcaller(rqstp->rq_xprt)); in nlm_granted_msg_1_svc()
567 * Purpose: Accept result from earlier nlm_test_msg() call
580 * Purpose: Accept result from earlier nlm_lock_msg() call
594 * Purpose: Accept result from earlier nlm_cancel_msg() call
607 * Purpose: Accept result from earlier nlm_unlock_msg() call
620 * Purpose: Accept result from earlier nlm_granted_msg() call
649 static nlm_shareres result; in nlm_share_3_svc() local
654 result.cookie = arg->cookie; in nlm_share_3_svc()
655 result.stat = nlm_granted; in nlm_share_3_svc()
656 result.sequence = 1234356; /* X/Open says this field is ignored? */ in nlm_share_3_svc()
657 return &result; in nlm_share_3_svc()
669 static nlm_shareres result; in nlm_unshare_3_svc() local
674 result.cookie = arg->cookie; in nlm_unshare_3_svc()
675 result.stat = nlm_granted; in nlm_unshare_3_svc()
676 result.sequence = 1234356; /* X/Open says this field is ignored? */ in nlm_unshare_3_svc()
677 return &result; in nlm_unshare_3_svc()
693 static nlm_res result; in nlm_nm_lock_3_svc() local
698 /* copy cookie from arg to result. See comment in nlm_test_1() */ in nlm_nm_lock_3_svc()
699 result.cookie = arg->cookie; in nlm_nm_lock_3_svc()
700 result.stat.stat = nlm_granted; in nlm_nm_lock_3_svc()
701 return &result; in nlm_nm_lock_3_svc()
734 static nlm4_testres result; in nlm4_test_4_svc() local
743 * Copy the cookie from the argument into the result. Note that this in nlm4_test_4_svc()
746 * main function transmits the result before freeing the argument in nlm4_test_4_svc()
749 result.cookie = arg->cookie; in nlm4_test_4_svc()
751 result.stat.stat = nlm4_granted; in nlm4_test_4_svc()
753 result.stat.stat = nlm4_denied; in nlm4_test_4_svc()
754 memcpy(&result.stat.nlm4_testrply_u.holder, holder, in nlm4_test_4_svc()
757 return &result; in nlm4_test_4_svc()
763 nlm4_testres result; in nlm4_test_msg_4_svc() local
776 result.cookie = arg->cookie; in nlm4_test_msg_4_svc()
778 result.stat.stat = nlm4_granted; in nlm4_test_msg_4_svc()
780 result.stat.stat = nlm4_denied; in nlm4_test_msg_4_svc()
781 memcpy(&result.stat.nlm4_testrply_u.holder, holder, in nlm4_test_msg_4_svc()
786 * nlm_test has different result type to the other operations, so in nlm4_test_msg_4_svc()
795 &result, xdr_void, &dummy, timeo); in nlm4_test_msg_4_svc()
812 static nlm4_res result; in nlm4_lock_4_svc() local
817 /* copy cookie from arg to result. See comment in nlm_test_4() */ in nlm4_lock_4_svc()
818 result.cookie = arg->cookie; in nlm4_lock_4_svc()
820 result.stat.stat = getlock(arg, rqstp, LOCK_MON | LOCK_V4); in nlm4_lock_4_svc()
821 return &result; in nlm4_lock_4_svc()
827 static nlm4_res result; in nlm4_lock_msg_4_svc() local
832 result.cookie = arg->cookie; in nlm4_lock_msg_4_svc()
833 result.stat.stat = getlock(arg, rqstp, LOCK_MON | LOCK_ASYNC | LOCK_V4); in nlm4_lock_msg_4_svc()
834 transmit4_result(NLM4_LOCK_RES, &result, svc_getcaller(rqstp->rq_xprt)); in nlm4_lock_msg_4_svc()
848 static nlm4_res result; in nlm4_cancel_4_svc() local
853 /* copy cookie from arg to result. See comment in nlm_test_1() */ in nlm4_cancel_4_svc()
854 result.cookie = arg->cookie; in nlm4_cancel_4_svc()
860 result.stat.stat = unlock(&arg->alock, LOCK_CANCEL); in nlm4_cancel_4_svc()
861 return &result; in nlm4_cancel_4_svc()
867 static nlm4_res result; in nlm4_cancel_msg_4_svc() local
872 result.cookie = arg->cookie; in nlm4_cancel_msg_4_svc()
877 result.stat.stat = unlock(&arg->alock, LOCK_CANCEL | LOCK_V4); in nlm4_cancel_msg_4_svc()
878 transmit4_result(NLM4_CANCEL_RES, &result, svc_getcaller(rqstp->rq_xprt)); in nlm4_cancel_msg_4_svc()
894 static nlm4_res result; in nlm4_unlock_4_svc() local
899 result.stat.stat = unlock(&arg->alock, LOCK_V4); in nlm4_unlock_4_svc()
900 result.cookie = arg->cookie; in nlm4_unlock_4_svc()
902 return &result; in nlm4_unlock_4_svc()
908 static nlm4_res result; in nlm4_unlock_msg_4_svc() local
913 result.stat.stat = unlock(&arg->alock, LOCK_V4); in nlm4_unlock_msg_4_svc()
914 result.cookie = arg->cookie; in nlm4_unlock_msg_4_svc()
916 transmit4_result(NLM4_UNLOCK_RES, &result, svc_getcaller(rqstp->rq_xprt)); in nlm4_unlock_msg_4_svc()
924 * version returns the results in the RPC result, and so the client
941 static nlm4_res result; in nlm4_granted_4_svc() local
946 /* copy cookie from arg to result. See comment in nlm_test_1() */ in nlm4_granted_4_svc()
947 result.cookie = arg->cookie; in nlm4_granted_4_svc()
949 result.stat.stat = nlm4_granted; in nlm4_granted_4_svc()
950 return &result; in nlm4_granted_4_svc()
956 static nlm4_res result; in nlm4_granted_msg_4_svc() local
961 result.cookie = arg->cookie; in nlm4_granted_msg_4_svc()
962 result.stat.stat = nlm4_granted; in nlm4_granted_msg_4_svc()
963 transmit4_result(NLM4_GRANTED_RES, &result, svc_getcaller(rqstp->rq_xprt)); in nlm4_granted_msg_4_svc()
969 * Purpose: Accept result from earlier nlm_test_msg() call
982 * Purpose: Accept result from earlier nlm_lock_msg() call
996 * Purpose: Accept result from earlier nlm_cancel_msg() call
1009 * Purpose: Accept result from earlier nlm_unlock_msg() call
1022 * Purpose: Accept result from earlier nlm_granted_msg() call
1051 static nlm4_shareres result; in nlm4_share_4_svc() local
1056 result.cookie = arg->cookie; in nlm4_share_4_svc()
1057 result.stat = nlm4_granted; in nlm4_share_4_svc()
1058 result.sequence = 1234356; /* X/Open says this field is ignored? */ in nlm4_share_4_svc()
1059 return &result; in nlm4_share_4_svc()
1071 static nlm4_shareres result; in nlm4_unshare_4_svc() local
1076 result.cookie = arg->cookie; in nlm4_unshare_4_svc()
1077 result.stat = nlm4_granted; in nlm4_unshare_4_svc()
1078 result.sequence = 1234356; /* X/Open says this field is ignored? */ in nlm4_unshare_4_svc()
1079 return &result; in nlm4_unshare_4_svc()
1095 static nlm4_res result; in nlm4_nm_lock_4_svc() local
1100 /* copy cookie from arg to result. See comment in nlm4_test_1() */ in nlm4_nm_lock_4_svc()
1101 result.cookie = arg->cookie; in nlm4_nm_lock_4_svc()
1102 result.stat.stat = nlm4_granted; in nlm4_nm_lock_4_svc()
1103 return &result; in nlm4_nm_lock_4_svc()