全部博文(123)
分类: LINUX
2010-06-21 21:54:26
5.等待事件 wait_event(queue,condition); wait_event_inerruptible(queue,condition); wait_event_timeout(queue,condition,timeout); wait_event_inerruptible_timeout(queue,condition,timeout); 6.唤醒队列 void wake_up(wait_queue_head_t *queue); void wake_up_inerruptible(wait_queue_head_t *queue); 7.在等待队列上睡眠 sleep_on(wait_queue_head_t *q); interrupt_sleep_on(wait_queue_head_t *q); |
|
struct __wait_queue { unsigned int flags; #define WQ_FLAG_EXCLUSIVE 0x01 void *private; wait_queue_func_t func; struct list_head task_list; }; |