Query: xdr_init_encode
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
XDR_INIT_ENCODE(9) Linux Networking XDR_INIT_ENCODE(9)NAMExdr_init_encode - Initialize a struct xdr_stream for sending data.SYNOPSISvoid xdr_init_encode(struct xdr_stream * xdr, struct xdr_buf * buf, __be32 * p);ARGUMENTSxdr pointer to xdr_stream struct buf pointer to XDR buffer in which to encode data p current pointer inside XDR bufferNOTEat the moment the RPC client only passes the length of our scratch buffer in the xdr_buf's header kvec. Previously this meant we needed to call xdr_adjust_iovec after encoding the data. With the new scheme, the xdr_stream manages the details of the buffer length, and takes care of adjusting the kvec length for us.COPYRIGHTKernel Hackers Manual 2.6. July 2010 XDR_INIT_ENCODE(9)