aclrtGetBufFromChain

Description

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

Prototype

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

Parameters

Parameter

Input/Output

Description

headBuf

Input

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

index

Input

Index of the Mbuf chain (starting from 0).

buf

Output

Shared buffer specified by index. For details about the type definition, see aclrtMbuf.

Returns

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