aclrtGetBufChainNum

Description

Obtains the number of shared buffers in the Mbuf chain.

Prototype

aclError aclrtGetBufChainNum(aclrtMbuf headBuf, uint32_t *num)

Parameters

Parameter

Input/Output

Description

headBuf

Input

First shared buffer in the Mbuf chain.

num

Output

Number of shared buffers.

Returns

0 on success; else, failure. For details, see aclError.