home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.sysv386
- Path: sparky!uunet!darwin.sura.net!jvnc.net!mtcusa
- From: mtcusa@tigger.jvnc.net (Multilingual Technogies Corporation)
- Subject: INTERACTIVE Unix and Sun River Terminals
- Message-ID: <1992Jul25.120758.10748@tigger.jvnc.net>
- Originator: mtcusa@tigger.jvnc.net
- Sender: news@tigger.jvnc.net (Zee News Genie)
- Nntp-Posting-Host: tigger.jvnc.net
- Organization: JvNCnet, Princeton University, NJ
- Distribution: usa
- Date: Sat, 25 Jul 1992 12:07:58 GMT
- Lines: 29
-
- HI:
-
- I am inside the ioctl call of an INTERACTIVE Unix driver, and need to find
- out the current 'struct tty *tp' pointer of the current user. This is
- not a line discipline ioctl, so I don't really get the tp passed to me.
-
- Normally I could do:
-
- tp = &cdevsw[major(dev)].d_ttys[minor(dev)];
-
- from a serial line login, or
-
- if( ! strcmp( cdevsw[major(dev)].d_name, "kd" ) )
- tp = kd_state[VTINDEX(dev)]->tp;
-
- for a virtual terminal.
-
- The problem is now I have to find it from a Sun River Terminal.
- These are external VGA consoles. They also provide a virtual terminal
- capability, but seem to have put the 'tp' pointer somewhere else.
-
- I haven't tried their SUNINDEX() macro yet (I think that's the name)
- because I'm not sure that will index into the 'kd_state' table.
- I suppose I could start stepping thru the kernel debugger, but that turns
- my stomach; as does just hacking thru endless panics.
-
- Any suggestions?
-
- George Bogatko - mtcusa@tigger.jvnc.net
-