sp500_buffer¶
A tensor handed to or received from the DSP.
The buffer itself records where its memory lives, so one function signature serves both the zero-copy and the staged path.
- sp500_buffer_alloc() - shared memory, zero copy, you own it and free it.
- sp500_buffer_wrap() - your own memory, staged through shared memory.
- sp500_buffer_none() - "not used", for optional tensors.
Attributes¶
| Member | Description |
|---|---|
data |
|
size |
|
flags |
data¶
host virtual address; NULL means unused
size¶
size in bytes
flags¶
a combination of SP500_BUFFER_SHARED