Re: virtual serial port driver.....



On 2006-10-18, Iwo Mergler <Iwo.Mergler@xxxxxxxxxxxxxxxxxxxx> wrote:

is it the same way to develop it with a regular serial char drive???

No. You can write a char driver which behaves like a serial
port, but that means that you have to implement a long list
of IOCTLs.

Including the line discipline layer, which will be a bitch to
get right.

They tty subsystem in the kernel takes care of most of this.
You need to write a tty driver.

http://lwn.net/images/pdf/LDD3/ch18.pdf

I'm glad somebody is finally documenting tty drivers! I would
have killed for that chapter a few years ago.

--
Grant Edwards grante Yow! Kids, don't gross me
at off... "Adventures with
visi.com MENTAL HYGIENE" can be
carried too FAR!
.



Relevant Pages


Loading