Date: Fri, 24 Dec 2004 15:12:08 +0100 (MET) From: Jan Engelhardt <jengelh@linux01.gwdg.de> Cc: freebsd-hackers@freebsd.org Subject: Re: Kernel crash w/o reason Message-ID: <Pine.LNX.4.61.0412241511460.8113@yvahk01.tjqt.qr> In-Reply-To: <20041224125226.79738.qmail@web52701.mail.yahoo.com> References: <20041224125226.79738.qmail@web52701.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>> I wanted that the device can only be opened once, >> and holding a mutex while it >> is open seemed like a simple idea. (Since >> mtx_trylock() will then fail -- easy >> to implement.) > >An even more simpler idea would be to set a flag in >the softc data structure on initialization, so as to >avoid initializing again. And where do I do that? Do you mean in the struct cdevsw? Jan Engelhardt -- ENOSPC
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.61.0412241511460.8113>