aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/xdr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sunrpc/xdr.h')
-rw-r--r--include/linux/sunrpc/xdr.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/sunrpc/xdr.h b/include/linux/sunrpc/xdr.h
index a06aab278fe0..9e340fa23c06 100644
--- a/include/linux/sunrpc/xdr.h
+++ b/include/linux/sunrpc/xdr.h
@@ -148,19 +148,19 @@ extern int write_bytes_to_xdr_buf(struct xdr_buf *, unsigned int, void *, unsign
148/* 148/*
149 * Helper structure for copying from an sk_buff. 149 * Helper structure for copying from an sk_buff.
150 */ 150 */
151typedef struct { 151struct xdr_skb_reader {
152 struct sk_buff *skb; 152 struct sk_buff *skb;
153 unsigned int offset; 153 unsigned int offset;
154 size_t count; 154 size_t count;
155 __wsum csum; 155 __wsum csum;
156} skb_reader_t; 156};
157 157
158typedef size_t (*skb_read_actor_t)(skb_reader_t *desc, void *to, size_t len); 158typedef size_t (*xdr_skb_read_actor)(struct xdr_skb_reader *desc, void *to, size_t len);
159 159
160size_t xdr_skb_read_bits(skb_reader_t *desc, void *to, size_t len); 160size_t xdr_skb_read_bits(struct xdr_skb_reader *desc, void *to, size_t len);
161extern int csum_partial_copy_to_xdr(struct xdr_buf *, struct sk_buff *); 161extern int csum_partial_copy_to_xdr(struct xdr_buf *, struct sk_buff *);
162extern ssize_t xdr_partial_copy_from_skb(struct xdr_buf *, unsigned int, 162extern ssize_t xdr_partial_copy_from_skb(struct xdr_buf *, unsigned int,
163 skb_reader_t *, skb_read_actor_t); 163 struct xdr_skb_reader *, xdr_skb_read_actor);
164 164
165extern int xdr_encode_word(struct xdr_buf *, unsigned int, u32); 165extern int xdr_encode_word(struct xdr_buf *, unsigned int, u32);
166extern int xdr_decode_word(struct xdr_buf *, unsigned int, u32 *); 166extern int xdr_decode_word(struct xdr_buf *, unsigned int, u32 *);