> PMFJI, if I recall the start of the thread (I may be completely wrong),
> the idea is to allow serial port monitoring? Why not just have the
> info available via /proc/serial/0 (or whatever)?
> A simple tagged format like:
> CTS: Active
> RTS: Inactive
> DTR: Active
> DSR: Inactive
> DCD: Inactive
> RX Buffer: 0
> TX Buffer: 0
How about: because my latest patches only add about a dozen bytes to the size
of the kernel, whereas a /proc interface would add much more.
How about: as my program that does the screen update looks at the data
every 50ms (to make the data LEDs look right), the overhead of reading and
processing the /proc format would be a much bigger load. It seems ridiculous
to execute code in the kernel to convert a binary number to an ascii string,
then convert it back in user land, when the number can be accessed directly
through an IOCTL. (Which would be possible even if someone does add a /proc
interface).
-- Peter Fox