Re: Custom Driver to Serial Driver Read Interface Problem

From: Alan Cox (
Date: Fri May 03 2002 - 08:53:58 EST

> I am writing a kernel mode device driver which needs to read and write data
> from serial port ( /dev/ttyS1 in this case ).

You want to be a line discipline. Take a look at slip.c as an example. Thats
a line discipline one end and a network protocol the other. It gets called
when there is stuff for reading and room to send, it has calls to send more
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue May 07 2002 - 22:00:19 EST