Module work_queue

Module work_queue 

Source
Available on crate feature unstable only.
Expand description

A generic work queue.

Work queues are the backbone of cryptographic drivers. They enable asynchronous and blocking operations using shared peripherals, like crypto accelerators. Clients post work items into the work queue, and poll for completion. The act of polling processes the queue, which allows any number of clients to post work without deadlocking.

Work queues are configured by backends. Backends register a process callback which is called when a client posts a work item or polls for completion.

Posting a work item into the queue returns a handle. The handle can be used to poll whether the work item has been processed. Dropping the handle will cancel the work item.

Enumsยง

Status
The status of a work item.