All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Juergen Quade <quade@hs-niederrhein.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: module_param( byte ... ) missing?
Date: Sun, 04 Jan 2004 13:06:07 +1100	[thread overview]
Message-ID: <20040104043037.EC4042C0DC@lists.samba.org> (raw)
In-Reply-To: Your message of "Sat, 03 Jan 2004 17:40:26 BST." <20040103164026.GA29962@hsnr.de>

In message <20040103164026.GA29962@hsnr.de> you write:
> Rusty,
> 
> using the "byte"-datatype as module parameter throws a compile error.
> Other than stated in the comment of the headerfile <linux/moduleparam.h>
> 
> 	/* Helper functions: type is byte, short, ushort, int, uint, long,
> 	   ulong, charp, bool or invbool, or XXX if you define param_get_XXX,
> 	   param_set_XXX and param_check_XXX. */
> 	#define module_param_named(name, value, type, perm)
> 	...
> 	
> the datatype _byte_ seems not be implemented.
> Have you dropped it intentionally?

No, just not implemented; the comment is overzealous.  

Of course, you can implement byte in two ways: you can do it in your
own module (effectively a private type), or in kernel/params.c.  I'd
prefer the former, and if lots of modules use it, we move it to
kernel/params.c.

Hope that clarifies,
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

      reply	other threads:[~2004-01-04  4:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-03 16:40 module_param( byte ... ) missing? Juergen Quade
2004-01-04  2:06 ` Rusty Russell [this message]

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=20040104043037.EC4042C0DC@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quade@hs-niederrhein.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.