How to implement a virtual TTY device?

From: Jim Zeus (jimzeus@edguy.nu)
Date: Mon Nov 04 2002 - 19:37:32 EST


('binary' encoding is not supported, stored as-is) Hi,
I am trying to implement a virtual TTY device which relate to a serial
port through some complex protocol, but I have no experience about
it.So can anybody tell me where should I put the operation functions ?
Implement a new tty driver or just put the operation in the
functions(tty_open,tty_read, etc) which in the tty_io.c or something
else(maybe as a line dicipline:)?

In my opinion, to implement the code in the tty_driver will let the code be with the hardware driver together,and its not good I think.
But to implement the code in tty_io.c will let the length of tty_io.c longer and longer...
So is there any suggestion or something like this which had been implemented ?

TIA

------------------------------------------------------------
Edguy's Official Website - http://www.edguy.nu

---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:34 EST