acltdtGetBufData

Description

Obtains the data area pointer to and length of the shared buffer. You can use this pointer to fill in data. This API is synchronous.

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

Restrictions

Prototype

aclError acltdtGetBufData(const acltdtBuf buf, void **dataPtr, size_t *size)

Parameters

Parameter

Input/Output

Description

buf

Input

Shared buffer pointer, which must be obtained by calling acltdtAllocBuf.

dataPtr

Output

Pointer to the data area (address on device).

size

Output

Length of the data area, in bytes.

Returns

0 on success; else, failure.

See Also

For details about the API call sequence and example, see Shared Buffer Management.