table of contents
other versions
XDR_STREAM_DECODE_ST(9) | Linux Networking | XDR_STREAM_DECODE_ST(9) |
NAME¶
xdr_stream_decode_string_dup - Decode and duplicate variable length stringSYNOPSIS¶
ssize_t xdr_stream_decode_string_dup(struct xdr_stream * xdr, char ** str, size_t maxlen, gfp_t gfp_flags);
ARGUMENTS¶
struct xdr_stream * xdrpointer to xdr_stream
char ** str
location to store pointer to string
size_t maxlen
maximum acceptable string length
gfp_t gfp_flags
GFP mask to use
DESCRIPTION¶
Return values: On success, returns length of NUL-terminated string stored in *ptr -EBADMSG on XDR buffer overflow -EMSGSIZE if the size of the string would exceed maxlen -ENOMEM on memory allocation failureCOPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |