Hello Philip (and to everyone on the list),
Thanks a lot for your work. Unfortunality I've had very much to do the last
few weeks and I was not able to follow the development "on the bleeding
edge". But now I've downloaded the new code up to 2.1.34 and I'm happy to
add some lines to the code. I've just a few questions or comments about the
code. I would be glad to hear your comments.
My questions are:
- Have you tested the IRQ driven lp-driver? I think this could be a problem.
I've added a 'if (LP_IRQ(minor)) return -EINVAL;' to the code. Perhaps
this is not necessary?
- Is "blocking IO" a good choice? This means a read from the device
with no data available "hangs" (for example the simple 'cat'). If you add
a 'fcntl(fildes, F_SETFL, O_NONBLOCK)' in an user program, a read from the
device with no outstanding data returns EAGAIN. At the moment this is my
choice and this is different to the old version.
Thanks a lot for your help and comments.
Ciao
Carsten
-- Carsten Gross Internet: carsten@sol.wohnheim.uni-ulm.de Wohnheim Heilmeyersteige: Sebastian Kneipp Weg 6, 89075 Ulm