Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2001 12:12:41 -0700
From:      "Justin T. Gibbs" <gibbs@scsiguy.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        =?ISO-8859-1?Q?G=E9rard_Roudier?= <groudier@club-internet.fr>, Jake Burkholder <jake@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Bruce Evans <bde@zeta.org.au>
Subject:   Re: cvs commit: src/sys/alpha/alpha interrupt.c machdep.c mp_mac 
Message-ID:  <200101111912.f0BJCfs36487@aslan.scsiguy.com>
In-Reply-To: Your message of "Thu, 11 Jan 2001 10:55:38 PST." <XFMail.010111105538.jhb@FreeBSD.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101111912.f0BJCfs36487>