Date: Sun, 09 Mar 1997 20:58:02 -0700 From: Steve Passe <smp@csn.net> To: Amancio Hasty <hasty@rah.star-gate.com> Cc: "Louis A. Mamakos" <louie@TransSys.COM>, multimedia@freebsd.org Subject: Re: Anyone on the list who can check-in the bt848 driver? Message-ID: <199703100358.UAA19302@Ilsa.StevesCafe.com> In-Reply-To: Your message of "Sun, 09 Mar 1997 19:52:27 PST." <199703100352.TAA01880@rah.star-gate.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703100358.UAA19302>