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/
References:
- module_param( byte ... ) missing?Juergen Quade
- Prev by Date: Re: [PATCH 1/2] kthread_create
- Next by Date: Re: 2.6.1-rc1, scanner.ko, oops
- Previous by thread: module_param( byte ... ) missing?
- Next by thread: 2.6.1rc1 fails to build on Alpha
- Indexes:[Main][Thread]