Skip to contentSkip to conversation

serial or tty driver

DISCUSSION Mockern 2 participants 2 messages Feb 17, 2007

lore
Share & tools
lore

Mockern

author
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Mockern

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