diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2018-03-20 17:03:05 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-04-10 16:06:22 -0400 |
commit | 0e779aa70308462e45f7cd1a54de418dfe101694 (patch) | |
tree | 5b350fb76a51514070ca8f92b29d114f6241ddf9 /include/linux/sunrpc | |
parent | d943f2dd8dba1ecde2de053500a6533e39577bfc (diff) |
SUNRPC: Add helpers for decoding opaque and string types
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/xdr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xdr.h b/include/linux/sunrpc/xdr.h index d950223c64b1..7e609de34d85 100644 --- a/include/linux/sunrpc/xdr.h +++ b/include/linux/sunrpc/xdr.h | |||
@@ -253,6 +253,12 @@ xdr_stream_remaining(const struct xdr_stream *xdr) | |||
253 | return xdr->nwords << 2; | 253 | return xdr->nwords << 2; |
254 | } | 254 | } |
255 | 255 | ||
256 | ssize_t xdr_stream_decode_opaque(struct xdr_stream *xdr, void *ptr, | ||
257 | size_t size); | ||
258 | ssize_t xdr_stream_decode_opaque_dup(struct xdr_stream *xdr, void **ptr, | ||
259 | size_t maxlen, gfp_t gfp_flags); | ||
260 | ssize_t xdr_stream_decode_string(struct xdr_stream *xdr, char *str, | ||
261 | size_t size); | ||
256 | ssize_t xdr_stream_decode_string_dup(struct xdr_stream *xdr, char **str, | 262 | ssize_t xdr_stream_decode_string_dup(struct xdr_stream *xdr, char **str, |
257 | size_t maxlen, gfp_t gfp_flags); | 263 | size_t maxlen, gfp_t gfp_flags); |
258 | /** | 264 | /** |