aclrtAppendBufChain

Description

Adds a shared buffer to the Mbuf chain. A shared buffer chain supports a maximum of 128 shared buffers. The shared buffer can be obtained by calling aclrtAllocBuf or aclrtCopyBufRef.

Prototype

aclError aclrtAppendBufChain(aclrtMbuf headBuf, aclrtMbuf buf)

Parameters

Parameter

Input/Output

Description

headBuf

Input

First shared buffer in the Mbuf chain.

buf

Input

Shared buffer to add.

Returns

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