aclrtGetBufFromChain

Description

Obtains the shared buffer specified by index from the Mbuf chain.

Prototype

aclError aclrtGetBufFromChain(aclrtMbuf headBuf, uint32_t index, aclrtMbuf *buf)

Parameters

Parameter

Input/Output

Description

headBuf

Input

First shared buffer in the Mbuf chain.

index

Input

Index of the Mbuf chain (starting from 0).

buf

Output

Shared buffer specified by index.

Returns

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