Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sunrpc\xdr.h Create Date:2022-07-28 09:06:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xdr_stream_decode_opaque_inline - Decode variable length opaque xdr data*@xdr: pointer to xdr_stream*@ptr: location to store pointer to opaque data*@maxlen: maximum acceptable object size* Note: the pointer stored in @ptr cannot be assumed valid after the

Proto:static inline ssize_t xdr_stream_decode_opaque_inline(struct xdr_stream *xdr, void **ptr, size_t maxlen)

Type:ssize_t

Parameter:

TypeParameterName
struct xdr_stream *xdr
void **ptr
size_tmaxlen
502  * ptr = NULL
503  If Value for the false possibility is greater at compile time(xdr_stream_decode_u32 - Decode a 32-bit integer*@xdr: pointer to xdr_stream*@ptr: location to store integer* Return values:* %0 on success* %-EBADMSG on XDR buffer overflow < 0) Then Return -EBADMSG
505  If len != 0 Then
506  p = xdr_inline_decode(xdr, len)
507  If Value for the false possibility is greater at compile time(!p) Then Return -EBADMSG
509  If Value for the false possibility is greater at compile time(len > maxlen) Then Return -EMSGSIZE
511  ptr = p
513  Return len