aclrtGetBufChainNum

Description

Obtains the number of shared buffers in the Mbuf chain.

Prototype

1
aclError aclrtGetBufChainNum(aclrtMbuf headBuf, uint32_t *num)

Parameters

Parameter

Input/Output

Description

headBuf

Input

First shared buffer in the Mbuf chain. For details about the type definition, see aclrtMbuf.

num

Output

Number of shared buffers.

Returns

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