Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 1996 12:25:35 -0700
From:      Julian Elischer <julian@whistle.com>
To:        phk@freebsd.org
Cc:        current@freebsd.org
Subject:   Re: device driver open/close inconsistency
Message-ID:  <3263E52F.59E2B600@whistle.com>
References:  <193.845397271@critter.tfs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.....



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3263E52F.59E2B600>