1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{# SPDX-License-Identifier: GPL-2.0 #}

/**
 * {{ program }}_svc_encode_{{ result }} - Encode a {{ result }} result
 * @rqstp: RPC transaction context
 * @xdr: target XDR data stream
 *
 * Return values:
 *   %true: procedure results encoded successfully
 *   %false: encode failed
 */
bool {{ program }}_svc_encode_{{ result }}(struct svc_rqst *rqstp, struct xdr_stream *xdr)
{
{% if result == 'void' %}
	return xdrgen_encode_void(xdr);
{% else %}
	struct {{ result }} *resp = rqstp->rq_resp;

	return xdrgen_encode_{{ result }}(xdr, resp);
{% endif %}
}
无论今后遇到什么事情,都请不要后悔与我的相遇