diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-06-21 17:14:46 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-06-28 17:20:44 -0400 |
commit | 4517d526c8aa31b5c14165ef180cc19518ff0a35 (patch) | |
tree | 51201ff494ab5615034046a093e242795af794bb /include | |
parent | 64bd577ea0021f5903505de061b3b7d8a785ee94 (diff) |
SUNRPC: Add the helper xdr_stream_pos
Add a helper to report the current offset from the start of the
xdr_stream.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/xdr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xdr.h b/include/linux/sunrpc/xdr.h index 2489bce1fb88..647faf2289a7 100644 --- a/include/linux/sunrpc/xdr.h +++ b/include/linux/sunrpc/xdr.h | |||
@@ -218,6 +218,7 @@ extern void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 | |||
218 | extern __be32 *xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes); | 218 | extern __be32 *xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes); |
219 | extern void xdr_write_pages(struct xdr_stream *xdr, struct page **pages, | 219 | extern void xdr_write_pages(struct xdr_stream *xdr, struct page **pages, |
220 | unsigned int base, unsigned int len); | 220 | unsigned int base, unsigned int len); |
221 | extern unsigned int xdr_stream_pos(const struct xdr_stream *xdr); | ||
221 | extern void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p); | 222 | extern void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p); |
222 | extern void xdr_init_decode_pages(struct xdr_stream *xdr, struct xdr_buf *buf, | 223 | extern void xdr_init_decode_pages(struct xdr_stream *xdr, struct xdr_buf *buf, |
223 | struct page **pages, unsigned int len); | 224 | struct page **pages, unsigned int len); |