acltdtGetBufChainNum

Obtains the number of shared buffers in a shared buffer chain. This API is synchronous.

The Ascend 910 AI Processor does not support this API in the current version.

Restrictions

This API can be used only in open Ctrl CPU form or RC mode.

Prototype

aclError acltdtGetBufChainNum(const acltdtBuf headBuf, uin32_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

0 on success; else, failure.