Xref: utzoo comp.unix.microport:1865 comp.unix.xenix:3751 Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!att!chinet!mcdchg!ditka!cocktrice!mdm From: mdm@cocktrice.UUCP (Mike Mitchell) Newsgroups: comp.unix.microport,comp.unix.xenix Subject: "UNIX Programming on the 80286/80386" Keywords: This Book Raises Some Questions about Line Disciplines Message-ID: <322@cocktrice.UUCP> Date: 27 Oct 88 01:14:09 GMT Reply-To: mdm@cocktrice.UUCP (Mike Mitchell) Organization: Mike's Playground, Santa Fe, New Mexico Lines: 38 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@cocktrice.UUCP Santa Fe, NM 87505 UUCP: ...!uunet!dmk3b1!cocktrice!mdm