From owner-freebsd-arch Wed Mar 27 17: 4:10 2002 Delivered-To: freebsd-arch@freebsd.org Received: from 12-234-96-171.client.attbi.com (12-234-96-171.client.attbi.com [12.234.96.171]) by hub.freebsd.org (Postfix) with ESMTP id 23CE337B417 for ; Wed, 27 Mar 2002 17:04:07 -0800 (PST) Received: by 12-234-96-171.client.attbi.com (Postfix, from userid 1000) id 6F5565EA1; Wed, 27 Mar 2002 17:03:08 -0800 (PST) Date: Wed, 27 Mar 2002 17:03:08 -0800 From: Jon Mini To: Julian Elischer Cc: arch@FreeBSD.ORG Subject: Re: SMP safe reference counting Message-ID: <20020327170308.I20741@stylus.haikugeek.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from julian@elischer.org on Wed, Mar 27, 2002 at 12:10:36PM -0800 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Julian Elischer [julian@elischer.org] wrote : > > Once again on the SMP list a lock is being used to make a reference count > safe. I'd like to re-raise the issue of a safe reference counting > fascility. > > [ ... ] > > /* Note I use the non-existing "atomic_inc()". I think > we should have this as its SO COMMONLY used. */ > FWIW, I agree with Julian on both counts: a) a generic reference counting utility would be useful, however b) I frankly can't believe that FreeBSD doesn't have an atomic increment MI function. -- Jonathan Mini mini@haikugeek.com Yersterday, I was ashamed of myself. Today, I am just hungry. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message