Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2004 19:44:06 +0200
From:      Artis Caune <ac-lists@latnet.lv>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Using Kernel level mutex in FreeBSD 4.8
Message-ID:  <opr4pkvsexcpfy5d@mail.latnet.lv>
In-Reply-To: <20040311133302.24478.qmail@web42001.mail.yahoo.com>
References:  <20040311133302.24478.qmail@web42001.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
afaik 4.x use spl(9)


int s;
s = splimp();

... critical code ...

splx(s);



On Thu, 11 Mar 2004 05:33:02 -0800 (PST), jitendra pande 
<jpande_techinfo@yahoo.com> wrote:

> Hi,
>
> 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 kernel level mutex functions mtx_lock(..), mutex(..), mtx_init(..) 
> and other mtx_ functions are available from FreeBSD 5.0 onwards and not 
> in FreeBSD 4.8.
>
> Kindly adavice me how should i proceed.
>
> Also is there anything like Gaint lock in FreeBSD 4.8. If so then how 
> can i use it.
>
> Any early reply will be of great help.
>
> Thanks in advance
> Jitendra
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Search - Find what you’re looking for faster.
> _______________________________________________
> 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"
>



-- 
Artis



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