"UNIX Programming on the 80286/80386"

Mike Mitchell mdm at cocktrice.UUCP
Thu Oct 27 11:14:09 AEST 1988


I have recently acquired a copy of the book "UNIX Programming on the
80286/80386" by Alan Deikman, and this book raises some questions for
me.

I have gone through the chapters on how to write a Unix device driver,
and Alan Deikman gives some really neat examples. The specific example
printed in his book is a device driver for a multi-port serial card
with on board modems. He claims that this device driver was written and
compiled for Microport System V/386.

In looking at the code, however, there are some calls to routines which
manipulate the line disci
pline found in System V. I cannot find documentation
on what these routines expect for arguments and what the expected results
are.

Specifically the routines in question are:

	(*linesw[l->t_line).l_open)(1)
	(*linesw[l->t_line).l_close)(1)
	(*linesw[l->t_line).l_read)(1)
	(*linesw[l->t_line).l_write)(1)
	(*linesw[l->t_line).l_input)(1, ??)

	... and some others which look very similar to this

Is there a good source of documentation on how one deals with the line
discipline from the device driver level? I have looked at other information
including Bach's book and nothing covers this aspect with any kind of
depth.

Thank you for any information.


-- 
Mike Mitchell				BELL:	(505) 471-7639
2020 Calle Lorca #43			ARPA:	mdm at cocktrice.UUCP
Santa Fe, NM 87505			UUCP:	...!uunet!dmk3b1!cocktrice!mdm



More information about the Comp.unix.microport mailing list