From owner-freebsd-multimedia Sun Mar 9 19:58:21 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA03433 for multimedia-outgoing; Sun, 9 Mar 1997 19:58:21 -0800 (PST) Received: from Ilsa.StevesCafe.com (sc-gw.StevesCafe.com [205.168.119.191]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA03422 for ; Sun, 9 Mar 1997 19:58:13 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by Ilsa.StevesCafe.com (8.7.5/8.6.12) with SMTP id UAA19302; Sun, 9 Mar 1997 20:58:02 -0700 (MST) Message-Id: <199703100358.UAA19302@Ilsa.StevesCafe.com> X-Authentication-Warning: Ilsa.StevesCafe.com: Host localhost [127.0.0.1] didn't use HELO protocol X-Mailer: exmh version 1.6.5 12/11/95 From: Steve Passe To: Amancio Hasty cc: "Louis A. Mamakos" , multimedia@freebsd.org Subject: Re: Anyone on the list who can check-in the bt848 driver? In-reply-to: Your message of "Sun, 09 Mar 1997 19:52:27 PST." <199703100352.TAA01880@rah.star-gate.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 09 Mar 1997 20:58:02 -0700 Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >From The Desk Of "Louis A. Mamakos" : > > I might be all wet here, but I think that the kernel only calls the > > driver's close routine when the *last* reference to the open device > > is closed. It's been awhile since I've hacked device driver code, but > > I think this was the case a while ago. > > Hi, > > When a process exits , it should close all its opened devices . In > other words, the device's close function. Usually, this is called > resource management and is not necessarily the responsibility of > the program rather the exit's handler to call the close function > should the program failed to close the device. BUT the OS keeps a reference count, and only calls xxx_close() on the LAST close, ie when the reference count goes to zero. -- Steve Passe | powered by smp@csn.net | Symmetric MultiProcessor FreeBSD