aclrtAppendBufChain

Description

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

Prototype

1
aclError aclrtAppendBufChain(aclrtMbuf headBuf, aclrtMbuf buf)

Parameters

Parameter

Input/Output

Description

headBuf

Input

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

buf

Input

Shared buffer to add. For details about the type definition, see aclrtMbuf.

Returns

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