Re: module_param( byte ... ) missing?

From: Rusty Russell
Date: Sat Jan 03 2004 - 23:32:16 EST


In message <20040103164026.GA29962@xxxxxxx> 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/