From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 12 07:41:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CDE016A4E7 for ; Fri, 12 Mar 2004 07:41:35 -0800 (PST) Received: from web42005.mail.yahoo.com (web42005.mail.yahoo.com [66.218.93.173]) by mx1.FreeBSD.org (Postfix) with SMTP id D355443D31 for ; Fri, 12 Mar 2004 07:41:34 -0800 (PST) (envelope-from jpande_techinfo@yahoo.com) Message-ID: <20040312154132.85511.qmail@web42005.mail.yahoo.com> Received: from [202.144.61.162] by web42005.mail.yahoo.com via HTTP; Fri, 12 Mar 2004 07:41:32 PST Date: Fri, 12 Mar 2004 07:41:32 -0800 (PST) From: jitendra pande To: Artis Caune , freebsd-hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: Using Kernel level mutex in FreeBSD 4.8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 15:41:35 -0000 Hi Artis...... 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 network activity like pinging another machine then my application using the driver crashes. The behavior is very erratic...in some cases it works even when doing theg network operation but in another sitautaion it just crashes...... can u help me why this is happening......is there anything else i need to do.. 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.... Artis Caune wrote: 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 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 _______________________________________________ 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" --------------------------------- Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster.