1XDR_RESTRICT_BUFLEN(9) Linux Networking XDR_RESTRICT_BUFLEN(9)
2
3
4
6 xdr_restrict_buflen - decrease available buffer space
7
9 int xdr_restrict_buflen(struct xdr_stream * xdr, int newbuflen);
10
12 xdr
13 pointer to xdr_stream
14
15 newbuflen
16 new maximum number of bytes available
17
19 Adjust our idea of how much space is available in the buffer. If we've
20 already used too much space in the buffer, returns -1. If the available
21 space is already smaller than newbuflen, returns 0 and does nothing.
22 Otherwise, adjusts xdr->buf->buflen to newbuflen and ensures xdr->end
23 is set at most offset newbuflen from the start of the buffer.
24
26Kernel Hackers Manual 3.10 June 2019 XDR_RESTRICT_BUFLEN(9)