acltdtAppendBufChain
The
Description
Appends a shared buffer to the tail of a buffer chain whose head is the shared buffer pointed to by headBuf. The buffer chain can have only one shared buffer.
Restrictions
- A shared buffer chain supports a maximum of 128 shared buffers.
- For the
Atlas 200/300/500 Inference Product , this API can be used only in the following modes:Ascend RC Form
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
headBuf |
Input |
Pointer to the head of a shared buffer chain, which is obtained by calling acltdtAllocBuf or acltdtCopyBufRef. |
buf |
Input |
Pointer to the buffer to be appended, which is obtained by calling acltdtAllocBuf or acltdtCopyBufRef. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Shared Buffer Management