On Wed, Apr 26, 2000, Chao Tan <[EMAIL PROTECTED]> wrote:
>
> On Wed, 26 Apr 2000, Johannes Erdfelt wrote:
>
> > On Wed, Apr 26, 2000, Chao Tan <[EMAIL PROTECTED]> wrote:
> > >
> > > I am looking at hub.c and feel confused about ont spot.
> > >
> > > In function hub_irq there is a line
> > >
> > > if (waitqueue_active(&khubd_wait)) { ...}
> > >
> > > But I can not see where the queue is operated anywhere.
> > >
> > > Can anyone give me some hint about it?
> >
> > In usb_hub_thread:
> >
> > do {
> > usb_hub_events();
> > interruptible_sleep_on(&khubd_wait);
> > } while (!signal_pending(current));
>
> I still does not get it totally. Can it make sure the same event can not
> be processed more than once in this way?
Yeah, an event will only be processed once this way.
The process isn't perfect. We may process 2 events when we really only
need to make one run, but it doesn't hurt.
JE
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]