Interface Description
The following interfaces are provided:
- Queue request interface: int wd_request_queue(struct wd_queue *q). It requests a queue from a corresponding hardware accelerator according to an algorithm requirement specified by a user.
- Message sending interface: int wd_send(struct wd_queue *q, void *req). It sends the task message req to queue q for hardware processing.
- Message receiving interface: int wd_recv(struct wd_queue *q, void **resp). It receives the accelerator hardware response message resp from queue q.
- Queue release interface: void wd_release_queue(struct wd_queue *q). It releases the requested queue back to a corresponding hardware accelerator.
For details about the APIs, see WD Basic Interfaces-WD Queue Management Interface, WD Basic Interfaces-WD Algorithm Queue Receiving and Sending Interfaces, and WD Data Storage Formats and Memory Interfaces. The precautions for using these interfaces are described in the following scenarios.
Parent topic: WD Basic Layer Interfaces