每个任务队列结构(tq_struct)包含着已经排队的任务信息。它被设备驱动用来描叙那些无需立刻 执行的任务。
[b]struct tq_struct {
struct tq_struct *next;[/b] /* linked list of active bh's */
[b]int sync;[/b] /* must be initialized to zero */
[b]void (*routine)(void *); [/b]/* function to call */
[b]void *data;[/b] /* argument to function */
[b]};[/b]
[b]struct tq_struct {
struct tq_struct *next;[/b] /* linked list of active bh's */
[b]int sync;[/b] /* must be initialized to zero */
[b]void (*routine)(void *); [/b]/* function to call */
[b]void *data;[/b] /* argument to function */
[b]};[/b]