每个任务队列结构(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]
本文详细介绍了任务队列结构(tq_struct),包括其组成部分如next指针、sync同步标志、routine回调函数及data参数等关键信息。这些结构被设备驱动用于描述无需立即执行的任务。
460

被折叠的 条评论
为什么被折叠?



