1XDR_INIT_ENCODE(9) Linux Networking XDR_INIT_ENCODE(9)
2
3
4
6 xdr_init_encode - Initialize a struct xdr_stream for sending data.
7
9 void xdr_init_encode(struct xdr_stream * xdr, struct xdr_buf * buf,
10 __be32 * p);
11
13 xdr
14 pointer to xdr_stream struct
15
16 buf
17 pointer to XDR buffer in which to encode data
18
19 p
20 current pointer inside XDR buffer
21
23 at the moment the RPC client only passes the length of our scratch
24 buffer in the xdr_buf's header kvec. Previously this meant we needed to
25 call xdr_adjust_iovec after encoding the data. With the new scheme, the
26 xdr_stream manages the details of the buffer length, and takes care of
27 adjusting the kvec length for us.
28
30Kernel Hackers Manual 2.6. November 2011 XDR_INIT_ENCODE(9)