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.
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. |
0 on success; else, failure.
For details about the API call sequence and example, see Shared Buffer Management.