From: Andrew Morton <akpm@osdl.org>
To: Paul Jackson <pj@sgi.com>
Cc: Simon.Derr@bull.net, linux-kernel@vger.kernel.org, ak@suse.de,
torvalds@osdl.org, clameter@sgi.com
Subject: Re: [PATCH 01/02] cpuset bitmap and mask remap operators
Date: Mon, 24 Oct 2005 01:37:13 -0700 [thread overview]
Message-ID: <20051024013713.25770d14.akpm@osdl.org> (raw)
In-Reply-To: <20051024011613.691e28f4.pj@sgi.com>
Paul Jackson <pj@sgi.com> wrote:
>
> Andrew wrote:
> > > +#define node_remap(oldbit, old, new) \
> > > + __node_remap((oldbit), &(old), &(new), MAX_NUMNODES)
> > > +static inline int __node_remap(int oldbit, ...
> >
> > What's the reason for the wrapper macro?
>
> Most all the nodemask/cpumask operators are like that. It allows
> writing *mask code as if masks were pass by value (which is how the
> vast majority of kernel hackers, working on systems with one-word
> masks, think of them), while actually passing by reference, to
> avoid unnecessary stack copies of multiword masks.
>
hm. That hides what's really going on from the programmer.
Oh well - you're the only guy who dinks with that stuff anyway ;)
> > +EXPORT_SYMBOL(bitmap_bitremap);
> >
> > Is that deliberately not EXPORT_SYMBOL_GPL?
>
> It's not deliberate that I am aware of.
>
> But it does seem to be the common practice ....
>
> All the bitmap routines are that way - no GPL. In fact it seems that
> almost all the EXPORT_SYMBOLS in the lib/*.c routines are that way - 12
> with GPL and 174 without GPL, or some such. The only lib/*.c GPL
> exports are in lib/klist.c and lib/kobject_uevent.c.
>
> Is this bad?
>
Ah, the bitmap library - sorry I thought it was in the cpuset code.
Making the bitmap library non-GPL makes sense I guess.
next prev parent reply other threads:[~2005-10-24 8:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-24 7:27 Paul Jackson
2005-10-24 7:27 ` [PATCH 02/02] cpuset automatic numa mempolicy rebinding Paul Jackson
2005-10-24 8:36 ` Dave Hansen
2005-10-24 14:47 ` Paul Jackson
2005-10-24 14:52 ` Dave Hansen
2005-10-24 15:02 ` Paul Jackson
2005-10-24 7:48 ` [PATCH 01/02] cpuset bitmap and mask remap operators Andrew Morton
2005-10-24 8:16 ` Paul Jackson
2005-10-24 8:37 ` Andrew Morton [this message]
2005-10-24 14:37 ` Paul Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051024013713.25770d14.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=Simon.Derr@bull.net \
--cc=ak@suse.de \
--cc=clameter@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pj@sgi.com \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome