Messages in this thread |  | | From | David Woodhouse <> | Subject | Re: Synchronization Techniques in 2.2 Kernel | Date | Thu, 27 Sep 2001 22:07:24 +0100 |
| |
bstrand@switchmanagement.com said: > I apologize in advance if this is not quite right, having only done > "hello world" kernel modules thus far (plus a good deal of kernel > source browsing). I think you need to "unfold" the > interruptible_sleep_on call and do it yourself by adding current to > the wait queue before checking any cards, setting current->state = > TASK_INTERRUPTIBLE, then checking all cards and if none has data, > calling schedule.
You're right. It is very difficult to use sleep_on() and friends safely, and for that reason the plan is (or at least _has_ been) to take them all away in 2.5.
-- dwmw2
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |