* how to invoke canonical processing in kernel
@ 2001-10-16 18:53 Puneet Jain
2001-10-21 17:03 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: Puneet Jain @ 2001-10-16 18:53 UTC (permalink / raw)
To: Linux Kernel Mailing List
I am trying to figure out the correct approach a porting issue I am
dealing
with and would appreciate any pointers.
I am working on porting one of our communication products which works on
a
variety of OSs including Solaris, AIX etc to Linux. Basically the
product
provides a raw and canonical terminal interface to the applications and
has been implemented in STREAMS framework.
I have downloaded the LiS - Linux STREAMS (implemented by Dave Grothe)
from gcom.com. The only problem is that it is does not have any support
for terminal I/O
subsystem. So the processing that was handled by the 'ldterm' module on
other OSs now has to be handled by the available line disciplines in the
Linux kernel. While browsing the source I noticed that the default line
discipline N_TTY is probably sufficient to do the job but I am not sure
of the hooks. I am wondering if I can invoke the default line discipline
somehow or would I have to implement the canonical processing all over
again.
Any suggestions would be greatly appreciated.
Thanks,
Puneet
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to invoke canonical processing in kernel
2001-10-16 18:53 how to invoke canonical processing in kernel Puneet Jain
@ 2001-10-21 17:03 ` Alan Cox
2001-10-21 18:09 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2001-10-21 17:03 UTC (permalink / raw)
To: Puneet Jain; +Cc: Linux Kernel Mailing List
> subsystem. So the processing that was handled by the 'ldterm' module on
> other OSs now has to be handled by the available line disciplines in the
> Linux kernel. While browsing the source I noticed that the default line
Linux is based on the BSD codebase. The streams disaster was one we chose
to skip over and ignore
> discipline N_TTY is probably sufficient to do the job but I am not sure
> of the hooks. I am wondering if I can invoke the default line discipline
> somehow or would I have to implement the canonical processing all over
> again.
Canonical processing is always part of the tty driver. The POSIX
tcsetattr/tcgetattr calls let you configure which parts of it you need
(eg line processing, echo, character by character input etc)
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to invoke canonical processing in kernel
2001-10-21 17:03 ` Alan Cox
@ 2001-10-21 18:09 ` Alan Cox
0 siblings, 0 replies; 3+ messages in thread
From: Alan Cox @ 2001-10-21 18:09 UTC (permalink / raw)
To: Alan Cox; +Cc: Puneet Jain, Linux Kernel Mailing List
> Linux is based on the BSD codebase. The streams disaster was one we chose
> to skip over and ignore
Codebase.. Umm perils of processing 3000 emails in a row. Philosophy is of
course what I mean here
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-10-21 18:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-16 18:53 how to invoke canonical processing in kernel Puneet Jain
2001-10-21 17:03 ` Alan Cox
2001-10-21 18:09 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox