From owner-freebsd-hackers Wed Mar 22 12:54:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from yana.lemis.com (yana.lemis.com [192.109.197.140]) by hub.freebsd.org (Postfix) with ESMTP id 796B837C292 for ; Wed, 22 Mar 2000 12:53:54 -0800 (PST) (envelope-from grog@mojave.worldwide.lemis.com) Received: from mojave.worldwide.lemis.com ([216.88.157.130]) by yana.lemis.com (8.8.8/8.8.8) with ESMTP id HAA00931; Thu, 23 Mar 2000 07:23:35 +1030 (CST) (envelope-from grog@mojave.worldwide.lemis.com) Received: (from grog@localhost) by mojave.worldwide.lemis.com (8.9.3/8.9.3) id MAA02709; Wed, 22 Mar 2000 12:53:07 -0800 (PST) (envelope-from grog) Date: Wed, 22 Mar 2000 12:53:07 -0800 From: Greg Lehey To: Poul-Henning Kamp Cc: Wes Peters , Warner Losh , hackers@FreeBSD.ORG Subject: Re: splFoo() question Message-ID: <20000322125307.B2183@mojave.worldwide.lemis.com> Reply-To: Greg Lehey References: <38D6B353.FA58BB15@softweyr.com> <23423.953621217@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <23423.953621217@critter.freebsd.dk>; from phk@critter.freebsd.dk on Tue, Mar 21, 2000 at 07:46:57AM +0100 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 21 March 2000 at 7:46:57 +0100, Poul-Henning Kamp wrote: > In message <38D6B353.FA58BB15@softweyr.com>, Wes Peters writes: >> Poul-Henning Kamp wrote: >>> >>> In message <200003182031.NAA97975@harmony.village.org>, Warner Losh writes: >>> >>>> I'd like to be able to do some simple spl locking in a driver that I'm >>>> writing. While I could go the splhigh() route, I'm concerned that >>>> spending lots of time at splhigh could cause problems, and some of my >>>> critical sections look to be very expensive. They only need >>>> protection against the card itself, not against the entire system. It >>>> just seems to be an overly large hammer. >>> >>> I miss this too. >> >> Semaphores? > > spl*() are semaphores. spl*() are interrupt lockouts. The difference is very evident in an SMP environment. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message