> > I'm not sure it is necessary to do device addition/removal at > > that high priority at all -- either it is done by normal threads > > which can wait, or the bus already needs to deal with unexpected > > removals in some way (like USB), and uses a helper thread.
Fully agreed. > How would you suggest to synchronize access to the device_t array in a > cfdriver_t? I could use a mutex per cfdriver_t, just for example, but > maybe you have in mind a better way. I think mutex per-cfdriver is worth having, considering device_lookup_private() is called for every single system call now... Masao -- Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635
