acltdtGetBufFromChain

The Atlas Training Series Product does not support this API.

Description

Obtains the Nth Mbuf in a Mbuf chain. (N is the value of index.)

Restrictions

  • For the Atlas 200/300/500 Inference Product, this API can be used only in the following modes:

    Ascend RC Form

Prototype

aclError acltdtGetBufFromChain(acltdtBuf headBuf, uint32_t index, acltdtBuf *buf)

Parameters

Parameter

Input/Output

Description

headBuf

Input

Pointer to the head of a shared buffer chain, which is obtained by calling acltdtAllocBuf or acltdtCopyBufRef.

index

Input

Index of a shared buffer in a shared buffer chain (starting from 0).

buf

Output

Pointer to the Nth shared buffer.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.