Re: Piggyback or line discipline, and how?

Benjamin C.R. LaHaise (blah@kvack.org)
Wed, 24 Mar 1999 11:02:15 -0500 (EST)


On Wed, 24 Mar 1999, Morten Norman wrote:

> Options i consider:
>
> 1) Present my driver as a serial driver, then piggybacking by opening the
> serial driver to access the COM port. Not perfectly clean, but works.
> But how do I open a port? I found sys_open(), but insmod didn't like it.
>
> 2) Use a line discipline. Does it work for me? I can't tell myself, since
> I don't understand them. Everybody's talking about line disciplines,
> and appears to know them by heart. Is there a document I have missed??
> The source isn't too obvious to learn from here :-(

3) Write a daemon a la gpm. Just open /dev/ttyS?, pick out the packets
and push the results into pseudo-ttys. Much easier to debug, and it works
on just about every Unix system in existance.

-ben

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/