public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PARAM 2/4
Date: Fri, 15 Nov 2002 17:51:48 -0500	[thread overview]
Message-ID: <3DD57A84.2070805@pobox.com> (raw)
In-Reply-To: <20021115222725.258EC2C129@lists.samba.org>

Rusty Russell wrote:

> Just fixed arch/i386/mach-voyager/setup_arch_pre.h from previous send.
>
> Makes a nice, easy to use, hard to misuse PARAM() macro for modules
> and boot parameters alike.  Implements the types required for current
> kernel usage.
>
> Jeff Garzik doesn't like the name PARAM (I had to rename the
> asm-i386/setup.h PARAM to "PARAMS", but it's only used in that header
> and one other.  I can't think of a better name.  KPARAM seems
> redundant.  MODULE_PARAM is misleading and wrong.


That's only because you never bother with drivers.
_Please_ look at the bigger picture.

1) I note you ignored Matthew Wilcox's example of module_init being used 
in two different ways.

2) "proper", converted-to-Rusty-style driver code is going to have

	MODULE_blah
	MODULE_foo
	MODULE_bar
	PARAM

You think that looks good??

3) modules a.k.a. drivers are going to be the more common users of this 
interface.

4) even where arch code uses boot cmdline params, they are typically 
clustered together, which makes their purpose all the more obvious.



> OTOH, linux/param.h was taken, so I put it in linux/params.h, which is
> pretty sucky.


Another namespace collision?  Who would have thought...

PARAM is ugly in drivers, and way too generic.

	Jeff




  reply	other threads:[~2002-11-15 22:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-15 22:26 [PATCH] PARAM 2/4 Rusty Russell
2002-11-15 22:51 ` Jeff Garzik [this message]
2002-11-15 23:17   ` Rusty Russell
2002-11-16  7:15   ` Willy Tarreau
2002-11-17 18:00 ` Linus Torvalds
2002-11-17 18:21   ` Rusty Russell
2002-11-17 18:29     ` Linus Torvalds

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=3DD57A84.2070805@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@transmeta.com \
    /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