From owner-freebsd-current Tue Oct 15 12:29:15 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA02458 for current-outgoing; Tue, 15 Oct 1996 12:29:15 -0700 (PDT) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA02453; Tue, 15 Oct 1996 12:29:12 -0700 (PDT) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.7.6/8.7.3) with SMTP id MAA00334; Tue, 15 Oct 1996 12:27:42 -0700 (PDT) Message-ID: <3263E52F.59E2B600@whistle.com> Date: Tue, 15 Oct 1996 12:25:35 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0b6 (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: phk@freebsd.org CC: current@freebsd.org Subject: Re: device driver open/close inconsistency References: <193.845397271@critter.tfs.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Poul-Henning Kamp wrote: > > Why do we call a device-driver->open() on all opens, but only ->close() > once on the last close ? > > -- > Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. > http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. > whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. > Future will arrive by its own means, progress not so. history? the call on last close semantic has been a part of Unx for a long time and takes into account that FORK'd processes would call it twice and have only called the open once.....