/* xdr_init_decode - Initialize an xdr_stream for decoding data. @xdr: pointer to xdr_stream struct @buf: pointer to XDR buffer from which to decode data  */
void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p)
/* xdr_init_decode - Initialize an xdr_stream for decoding data. @xdr: pointer to xdr_stream struct @buf: pointer to XDR buffer from which to decode data  */
void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p)
{
	struct kvec *iov = buf->head;
	unsigned int len = iov->iov_len;
	if (len > buf->len)
		len = buf->len;
	xdr->buf = buf;
	xdr->iov = iov;
	xdr->p = p;
	xdr->end = (__be32 *)((char *)iov->iov_base + len);
}