mutex in kld

2003-06-06 Thread Anurag Chaudhary
I am using mutex in my kld.
but every time i run two instances of a program that uses this driver, the 
system hangs.
I hav put the lock function in the open function of kld and unlock in close 
function.
There is no call to sleep.
Although it is a big code to protect, but i need it that way.
Is there some solution to the problem.
Is lockmgr a better idea for this.
this is urgent

thanx
Anurag
_
Dress up your desktop! Get the best wallpapers. 
http://server1.msn.co.in/msnchannels/Entertainment/wallpaperhome.asp Just 
click here!

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mutex in kld

2003-06-06 Thread Anurag Chaudhary
I am using mutex in a kld.
mutex protects an open file so lock and unlock functions are called from 
open and close functions of the kld repectively.
but when i start second instance of an application working on this file, my 
system hangs.
there is no sleep call in the code.

can anybody figure out what's the prob.

thanx
Anurag
_
Staying fit. It's about being happy! 
http://server1.msn.co.in/features/stayingfit/index.asp Check out the new 
mantra.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"