Queue Request Interface
Prototype |
int wd_request_queue(struct wd_queue *q); |
|---|---|
Function |
Request queues from the corresponding hardware accelerator. |
Input Description |
Queue description q in user mode. You can set the algorithm and specify the device name or NUMA node mask. |
Output Description |
Description q of the requested queue |
Return Value Description |
0: success A negative value: failure (-WD_EINVAL: input parameter error; -WD_ENODEV: No proper device is found; -WD_ENOMEM: no available memory) |
Usage Instruction |
Multi-process and multi-thread invoking is supported. |
Precautions |
You can use dev_path or node_mask to specify a device to request queues. |
Parent topic: WD Basic Interfaces-WD Queue Management Interface