Memory Sharing Interface
Prototype |
int wd_share_reserved_memory(struct wd_queue *q, struct wd_queue *target_q); |
|---|---|
Function |
Share the memory reserved in q to target_q, so that target_q can access the DMA memory of q. |
Input Description |
q: source queue target_q: target queue |
Output Description |
None |
Return Value Description |
0: success Others: failure |
Usage Instruction |
target_q does not have its own DMA memory, and this function can be invoked by target_q only once. |
Precautions |
In the SVA scenario, the function of this interface is unavailable. |
Parent topic: WD Data Storage Formats and Memory Interfaces