Kernel crash w/o reason

Jan Engelhardt jengelh at linux01.gwdg.de
Fri Dec 24 06:12:11 PST 2004


>> 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


More information about the freebsd-hackers mailing list