From owner-cvs-all Thu Jan 11 11:13: 8 2001 Delivered-To: cvs-all@freebsd.org Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by hub.freebsd.org (Postfix) with ESMTP id E52AF37B400; Thu, 11 Jan 2001 11:12:42 -0800 (PST) Received: from scsiguy.com (localhost [127.0.0.1]) by aslan.scsiguy.com (8.11.0/8.9.3) with ESMTP id f0BJCfs36487; Thu, 11 Jan 2001 12:12:41 -0700 (MST) (envelope-from gibbs@scsiguy.com) Message-Id: <200101111912.f0BJCfs36487@aslan.scsiguy.com> To: John Baldwin Cc: =?ISO-8859-1?Q?G=E9rard_Roudier?= , Jake Burkholder , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Bruce Evans Subject: Re: cvs commit: src/sys/alpha/alpha interrupt.c machdep.c mp_mac In-Reply-To: Your message of "Thu, 11 Jan 2001 10:55:38 PST." Date: Thu, 11 Jan 2001 12:12:41 -0700 From: "Justin T. Gibbs" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >These variables are magic. A developer can find out that they are magic in on >e >of two ways: > >1) Use a special macro that acknowledges that they are magic, and have the >compile break if they don't so that they know there is something they need to >take into account. > >2) Go memorize all aforementioned headers to know that these variables are >magic. There is no reason that for two to be the case. We are only talking about a naming difference. Having the headers cleaned up is a different argument. >I prefer the interface 1) for this. Do you prefer 2)? I prefer "curproc" to PCPU_GET(curproc). Curproc already tells me that this variable must be per-cpu. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message