summaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorTrond Myklebust2018-03-20 22:03:05 +0100
committerAnna Schumaker2018-04-10 22:06:22 +0200
commit0e779aa70308462e45f7cd1a54de418dfe101694 (patch)
tree5b350fb76a51514070ca8f92b29d114f6241ddf9 /include/linux/sunrpc
parentNFSv4: Ignore change attribute invalidations if we hold a delegation (diff)
downloadkernel-qcow2-linux-0e779aa70308462e45f7cd1a54de418dfe101694.tar.gz
kernel-qcow2-linux-0e779aa70308462e45f7cd1a54de418dfe101694.tar.xz
kernel-qcow2-linux-0e779aa70308462e45f7cd1a54de418dfe101694.zip
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.h6
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)
return xdr->nwords << 2;
}
+ssize_t xdr_stream_decode_opaque(struct xdr_stream *xdr, void *ptr,
+ size_t size);
+ssize_t xdr_stream_decode_opaque_dup(struct xdr_stream *xdr, void **ptr,
+ size_t maxlen, gfp_t gfp_flags);
+ssize_t xdr_stream_decode_string(struct xdr_stream *xdr, char *str,
+ size_t size);
ssize_t xdr_stream_decode_string_dup(struct xdr_stream *xdr, char **str,
size_t maxlen, gfp_t gfp_flags);
/**