Pavel Machek <[EMAIL PROTECTED]> writes:

> Well -- it worked at home. When tried at school, I got oops in
> hashbin_insert: irlap_state_query tried to insert into
> self->discovery_log, which happens to be NULL.

Thanks for this bug rapport! I have never experienced this problem myself,
but when I look at the code, I can see that there is a problem with
it. I'll try to fix it tomorrow!

> > BTW: The use of irmanager to provide a "kernel-thread" with a process
> > context can probably be discussed a bit. The problem is obvious as you have
> > experienced. Well the PCMCIA package will not work without cardmgr
> > either!
> 
> which is sad because it means that you will not be able to use irlan as
> nfsroot.
> 
> > I also need a process context to register and unregister network devices
> > dynamically in IrLAN. I'm however not going to reimplement all the
> > dongle-drivers etc using timers, since the code will really hairy and hard
> > to maintain (and using timers is not possible for the IrLAN case anyway),
> > so I really need the process context.
> 
> What about having irlan network devices pre-allocated?

Yes, that is a possibility!

> Dongles could easily run in process contexts of irattach, AFAICS

But I need irmanager for changing the speed of all device drivers, not only
dongles. Irport can now also attach dongles and doesn't use irattach at
all, only insmod. Well you attach the dongle with dongle_attach, but if you
can run irattach or dongle_attach, then it should be possible to run
irmanager as well!?

> > Do you know any other way of solving this problem? I guess it's not
> > possible to get a process context without help from a process? How does
> > other kernel functionality deal with this problem?
> 
> I think that they create new kernel thread for such tasks. (Which is
> BTW also way for you, look at kswapd for example).

OK, I see that there is a possibility to do something like this for the
IrDA support as well. It would be good to have IrDA support up and running
without any help from user-space. I'll ask Alan if he thinks this the right
solution to the problem.

-- Dag
 
-- 
   / Dag Brattli                   | The Linux-IrDA Project               /
  // University of Tromsoe, Norway | Infrared communication for Linux    //
 /// http://www.cs.uit.no/~dagb    | http://www.cs.uit.no/linux-irda/   ///

Reply via email to