brintos

brintos / linux-shallow public Read only

0
0
Text · 572 B · 0b1709c Raw
22 lines · plain
1{# SPDX-License-Identifier: GPL-2.0 #}2 3/**4 * {{ program }}_svc_decode_{{ argument }} - Decode a {{ argument }} argument5 * @rqstp: RPC transaction context6 * @xdr: source XDR data stream7 *8 * Return values:9 *   %true: procedure arguments decoded successfully10 *   %false: decode failed11 */12bool {{ program }}_svc_decode_{{ argument }}(struct svc_rqst *rqstp, struct xdr_stream *xdr)13{14{% if argument == 'void' %}15	return xdrgen_decode_void(xdr);16{% else %}17	struct {{ argument }} *argp = rqstp->rq_argp;18 19	return xdrgen_decode_{{ argument }}(xdr, argp);20{% endif %}21}22