参照元

説明

引数

返り値

参考

実装

/**
 * queue_work - queue work on a workqueue
 * @wq: workqueue to use
 * @work: work to queue
 *
 * Returns 0 if @work was already on a queue, non-zero otherwise.
 *
 * We queue the work to the CPU on which it was submitted, but if the CPU dies
 * it can be processed by another CPU.
 */
int queue_work(struct workqueue_struct *wq, struct work_struct *work)
{
	int ret;

	ret = queue_work_on(get_cpu(), wq, work);
	put_cpu();
	return ret;
}
EXPORT_SYMBOL_GPL(queue_work);

コメント


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS