From owner-cvs-all Fri Aug 13 12:39:32 1999 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id BA35214F17; Fri, 13 Aug 1999 12:39:28 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.2) with ESMTP id VAA04548; Fri, 13 Aug 1999 21:38:53 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Julian Elischer Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/miscfs/specfs spec_vnops.c src/sys/sys conf.h In-reply-to: Your message of "Fri, 13 Aug 1999 11:26:06 PDT." Date: Fri, 13 Aug 1999 21:38:53 +0200 Message-ID: <4546.934573133@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk I'm not sure I copy you here, (actually I very sure I don't :-) Could you explain what it is that the driver wants to know here ? Poul-Henning In message , Julian Elischer writes: >(yey) >however I discovered in the SLICE code that it woudl be good if the third >operation was: >proc2: close > devsw->modechenge(R/W, 0, proc2 ) > >on fork: >proc2: close > devsw->modechenge(0, R/W, proc2 ) > > > >where the close2() operation is called on all close() operations > >On Fri, 13 Aug 1999, Poul-Henning Kamp wrote: > >> phk 1999/08/13 09:29:28 PDT >> >> Modified files: >> sys/miscfs/specfs spec_vnops.c >> sys/sys conf.h >> Log: >> Add support for device drivers which want to track all open/close >> operations. This allows a device driver better insight into >> what is going on that the current: >> >> proc1: open /dev/foo R/O >> devsw->open( R/O, proc1 ) >> proc2: open /dev/foo R/W >> devsw->open( R/W, proc2 ) >> proc2: close >> /* nothing, but device is >> really only R/O open */ >> proc1: close >> devsw->close( R/O, proc1 ) >> >> Revision Changes Path >> 1.95 +18 -59 src/sys/miscfs/specfs/spec_vnops.c >> 1.72 +3 -2 src/sys/sys/conf.h >> >> >> > > -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message