Date: Fri, 13 Aug 1999 11:26:06 -0700 (PDT) From: Julian Elischer <julian@whistle.com> To: Poul-Henning Kamp <phk@FreeBSD.org> 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 Message-ID: <Pine.BSF.3.95.990813111357.3531A-100000@current1.whistle.com> In-Reply-To: <199908131629.JAA74524@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
(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 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.990813111357.3531A-100000>