From owner-freebsd-hackers Mon Mar 20 22:47:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 25F5537BB16 for ; Mon, 20 Mar 2000 22:47:14 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost.freebsd.dk [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id HAA23425; Tue, 21 Mar 2000 07:46:57 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Wes Peters Cc: Warner Losh , hackers@FreeBSD.ORG Subject: Re: splFoo() question In-reply-to: Your message of "Mon, 20 Mar 2000 16:25:07 MST." <38D6B353.FA58BB15@softweyr.com> Date: Tue, 21 Mar 2000 07:46:57 +0100 Message-ID: <23423.953621217@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message