Re: Kernel crash w/o reason

From: Jan Engelhardt (jengelh_at_linux01.gwdg.de)
Date: 12/24/04

  • Next message: Norbert Koch: "parameters for tsleep(9)"
    Date: Fri, 24 Dec 2004 15:12:08 +0100 (MET)
    
    

    >> 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
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Norbert Koch: "parameters for tsleep(9)"