Newsgroups: comp.unix.sysv386 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!email!swdsrv.edvz.univie.ac.at!wu-wien.ac.at!mah From: mah@wu-wien.ac.at (Michael Haberler) Subject: STREAMS programming question, Data Link layer Message-ID: <1991Jun9.002848.1402@swdsrv.edvz.univie.ac.at> Sender: news@swdsrv.edvz.univie.ac.at Nntp-Posting-Host: parrot.prv.univie.ac.at Reply-To: mah@wu-wien.ac.at Organization: Vienna University Computer Center Date: Sun, 9 Jun 1991 00:28:48 GMT I'm trying to find out how to access the minor number returned by a clone open call of a STREAMS device driver. In particular, I've gone through the ATT SV/386 3.2 STREAMS programmers guide and made a kernel with the loopback example driver. This is a clonable driver, and it's properly called with the CLONEOPEN flag. It also allocates a unused minor number. There's no user-level example which shows how to get at the minor number. I tried fstat() on the open file, but that gives me the same minor number on two different clone opens. What's the canonical way to do this? thanks for any hint, -michael -- Michael Haberler mah@wu-wien.ac.at, mah@awiwuw11.bitnet University of Economics and Business Administration A-1090 Vienna, Augasse 2-6 Biz: +43 (1) 31336 x4796 Fax: 347-555 Home: +43 (1) 961-679 (voice & fax) D-Netz: +43 (663) 811-056