NAME

workqueue_enqueue - Enqueue a work for later processing

SYNOPSIS



void workqueue_enqueue(struct workqueue *wq, struct work *wk, struct cpu_info *ci)

DESCRIPTION

Enqueue the work wk into the workqueue wq.

If the WQ_PERCPU flag was set on workqueue creation, the ci argument may be used to specify the CPU on which the work should be enqueued. Also it may be NULL, then work will be enqueued on the current CPU. If WQ_PERCPU flag was not set, ci must be NULL.

The enqueued work will be processed in a thread context. A work must not be enqueued again until the callback is called by the workqueue(9) framework.

SEE ALSO

intro(9), workqueue(9)