Need help with serial line device driver

Steve Dyer dyer at arktouros.MIT.EDU
Fri Oct 21 03:37:56 AEST 1988


In article <385 at ftp.COM> bill at ftp.COM (Bill Lampman) writes:
>...I'm able to get SLIP packets from the serial ports via 'cat < /dev/tty1a',
>but I need to have the data from the serial port available to the IP
>kernel code for demultiplexing and checksumming, etc.  Does anyone know
>how I can access the serial line data without having a daemon running to
>read the data and then write it back to the kernel ? This scheme would
>cause way too much overhead.

You want to define a new TTY line discipline which will make the
bytes available to your IP input routine.  This is what's done
for SLIP under 4.xBSD, and there's no reason you shouldn't be able
to do the same, if your IP layer is in the kernel.

---
Steve Dyer
dyer at arktouros.MIT.EDU
dyer at spdcc.COM aka {harvard,husc6,ima,bbn,m2c,mipseast}!spdcc!dyer



More information about the Comp.unix.wizards mailing list