- 追加された行はこの色です。
- 削除された行はこの色です。
*参照元 [#u32b298b]
#backlinks
*説明 [#n18e7be8]
-パス: [[linux-2.6.33/kernel/workqueue.c]]
-FIXME: これは何?
--説明
**参考 [#m55a7ca9]
*実装 [#w198047e]
/*
* The externally visible workqueue abstraction is an array of
* per-CPU workqueues:
* The per-CPU workqueue (if single thread, we always use the first
* possible cpu).
*/
struct workqueue_struct {
struct cpu_workqueue_struct *cpu_wq;
struct cpu_workqueue_struct {
spinlock_t lock;
-
--[[linux-2.6.33/cpu_workqueue_struct]]
--[[linux-2.6.33/spinlock_t]]
struct list_head list;
struct list_head worklist;
-
--[[linux-2.6.33/list_head]]
const char *name;
int singlethread;
int freezeable; /* Freeze threads during suspend */
int rt;
#ifdef CONFIG_LOCKDEP
wait_queue_head_t more_work;
-
--[[linux-2.6.33/CONFIG_LOCKDEP]]
--[[linux-2.6.33/wait_queue_head_t]]
struct lockdep_map lockdep_map;
struct work_struct *current_work;
-現在実行中の仕事。
--[[linux-2.6.33/work_struct]]
struct workqueue_struct *wq;
-
--[[linux-2.6.33/lockdep_map]]
--[[linux-2.6.33/workqueue_struct]]
#endif
};
struct task_struct *thread;
-ワークキュー内の仕事を実行するカーネルスレッド。
--[[linux-2.6.33/task_struct]]
} ____cacheline_aligned;
-
--[[linux-2.6.33/____cacheline_aligned]]
*コメント [#p107d95a]