From owner-freebsd-current Mon Mar 27 12: 8:40 2000 Delivered-To: freebsd-current@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 2D78237B768 for ; Mon, 27 Mar 2000 12:08:37 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id MAA42799; Mon, 27 Mar 2000 12:08:33 -0800 (PST) (envelope-from dillon) Date: Mon, 27 Mar 2000 12:08:33 -0800 (PST) From: Matthew Dillon Message-Id: <200003272008.MAA42799@apollo.backplane.com> To: Daniel Eischen Cc: Nate Williams , nms@otdel-1.org, freebsd-current@FreeBSD.ORG Subject: Re: Is there spinlocks/semaphores available for drivers? References: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : :There's a paper that describes how Solaris transitioned from spl()s :to mutexes. ISTR they created one mutex for each splxxx. I'll have :to find this and re-read it. : :-- :Dan Eischen I think we're using a slightly different mechanism... our spl*()'s are actually interrupt bit masks. That is, any single spl*() call may mask several interrupt sources. Turning a mask with five or six bits set in it into a set of mutexes is a very expensive proposition. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message