[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: module_param( byte ... ) missing?


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


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
References: