Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2004 07:51:51 -0800 (PST)
From:      jitendra pande <jpande_techinfo@yahoo.com>
To:        Dag-Erling "Smørgrav" <des@des.no>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: How to use Kernel level mutex in FreeBSD 4.8
Message-ID:  <20040312155151.38206.qmail@web42003.mail.yahoo.com>
In-Reply-To: <xzpy8q7wle7.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
 
Hi Dag-Erling.....
 
Thanks a lot for the information.
 
I tried using the splimp(..) and splx(..) within my driver and it works 
for the fisrt go.....
 
But when i tried to do any other activity like pinging another machine/ starting a application then my client application using the driver crashes. The behavior is very 
erratic...in some cases it works even when doing any other operation/ but 
in another situataion it just crashes......
 
 
can u help me why this is happening......is there anything else i need 
to do.. any other way for mutual exclusion.... or some kernel level semaphore and so.....
 
also any idea that in FreeBSD how does one determine the spl level at 
which a device's interrupt routines execute
 
Thanks a lot for ur help....

Dag-Erling Smørgrav <des@des.no> wrote:
jitendra pande writes:
> I am trying to use kernle level mutex in my driver for FreeBSD 4.8.
> I tried searching for kernel level mutex but couldn't find any
> information on the same.

The FreeBSD 4 kernel is single-threaded. You don't need locking
except to protect against interrupts (see spl(9))

DES
-- 
Dag-Erling Smørgrav - des@des.no

---------------------------------
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040312155151.38206.qmail>