Re: Kernel crash w/o reason
From: Jan Engelhardt (jengelh_at_linux01.gwdg.de)
Date: 12/24/04
- Previous message: Paul Halliday: "Slattach"
- In reply to: Daniel Eischen: "Re: Kernel crash w/o reason"
- Next in thread: Kamal R. Prasad: "Re: Kernel crash w/o reason"
- Reply: Kamal R. Prasad: "Re: Kernel crash w/o reason"
- Reply: Robert Watson: "Re: Kernel crash w/o reason"
- Reply: John Baldwin: "Re: Kernel crash w/o reason"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 24 Dec 2004 13:13:34 +0100 (MET)
>> What should I use instead? A semaphore?
>You shouldn't have unrelated kernel threads waiting for a user
>process at all, so this sounds like a design problem, regardless
>of which mutual exclusion primitive you use. (Bear in mind that I
>haven't actually looked into what you're trying to do.) In any
>case, you can always use mutexes to implement whatever other
>synchronization mechanism you need.
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.)
_______________________________________________
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"
- Previous message: Paul Halliday: "Slattach"
- In reply to: Daniel Eischen: "Re: Kernel crash w/o reason"
- Next in thread: Kamal R. Prasad: "Re: Kernel crash w/o reason"
- Reply: Kamal R. Prasad: "Re: Kernel crash w/o reason"
- Reply: Robert Watson: "Re: Kernel crash w/o reason"
- Reply: John Baldwin: "Re: Kernel crash w/o reason"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|