Xref: utzoo comp.unix.wizards:15584 comp.unix.xenix:5690 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!ka From: ka@june.cs.washington.edu (Kenneth Almquist) Newsgroups: comp.unix.wizards,comp.unix.xenix Subject: Re: Help with line disciplines Message-ID: <7883@june.cs.washington.edu> Date: 15 Apr 89 22:57:00 GMT References: <763@dms.UUCP> Organization: U of Washington, Computer Science, Seattle Lines: 16 Unfortunately, line disciplines are not well documented. As I recall, l_open is called every time an open system call is done on the device, and l_close is called when a close system call is done and nothing else has the device open. When a program is run from the shell, the tty is not opened (instead it inherits its file descriptors from the shell) so the l_open routine is not called. I'm not sure it is "correct" to access the u structure from within a device driver, but it should word as the routine accessing the structure was invoked from a system call rather than an interrupt. To find all the processes in a process group, you have to search the process table. This is an array of proc structures (defined in sys/proc.h) named proc. There is also a routine (gsignal, I think) that will send a signal to all processes in a process group. Kenneth Almquist