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:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xdr_stream_decode_uint32_array - Decode variable length array of integers*@xdr: pointer to xdr_stream*@array: location to store the integer array or NULL*@array_size: number of elements to store* Return values:* On success, returns number of elements

Proto:static inline ssize_t xdr_stream_decode_uint32_array(struct xdr_stream *xdr, __u32 *array, size_t array_size)

Type:ssize_t

Parameter:

TypeParameterName
struct xdr_stream *xdr
__u32 *array
size_tarray_size
535  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
537  p = xdr_inline_decode(xdr, len * size of p )
538  If Value for the false possibility is greater at compile time(!p) Then Return -EBADMSG
540  If (array == NULL) Then Return len
542  If len <= array_size Then
543  If len < array_size Then memset(array + len, 0, (array_size - len) * size of array )
545  array_size = len
546  retval = len
547  Else retval = -EMSGSIZE
549  When array_size > 0 cycle array = be32_to_cpup(p)
551  Return retval