LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* serial or tty driver
@ 2007-02-17 15:55 Mockern
  2007-02-17 19:29 ` H. Peter Anvin
  0 siblings, 1 reply; 2+ messages in thread
From: Mockern @ 2007-02-17 15:55 UTC (permalink / raw)
  To: linux-kernel

I have a question, what is really difference between serial and tty drivers?

As I understand tty is high level and communicates with user space. 

Thank you  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: serial or tty driver
  2007-02-17 15:55 serial or tty driver Mockern
@ 2007-02-17 19:29 ` H. Peter Anvin
  0 siblings, 0 replies; 2+ messages in thread
From: H. Peter Anvin @ 2007-02-17 19:29 UTC (permalink / raw)
  To: Mockern; +Cc: linux-kernel

Mockern wrote:
> I have a question, what is really difference between serial and tty drivers?
> As I understand tty is high level and communicates with user space. 

That's pretty much it, yes.  When you're talking to a serial port, you 
have a stack that looks roughly like:

	(Userspace)
	VFS layer
	tty layer ----------------------\
	serial core layer                line discipline
	serial driver
	(Hardware)

There are other devices which can exist below the tty layer, like the 
pty driver:

	(Userspace)
	VFS layer
	tty layer ----------------------\
	pty driver                       line discipline

	-hpa

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-17 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-17 15:55 serial or tty driver Mockern
2007-02-17 19:29 ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).