acltdtGetBufChainNum

The Atlas Training Series Product does not support this API.

Description

Obtains the number of shared buffers in a shared buffer chain.

Restrictions

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

    Ascend RC Form

Prototype

aclError acltdtGetBufChainNum(acltdtBuf headBuf, uint32_t *num)

Parameters

Parameter

Input/Output

Description

headBuf

Input

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

num

Output

Number of shared buffers in a shared buffer chain.

Returns

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