2008-03-28 16:45:40 module_param macro
blue hash (UNITED STATES)
Message: 53265 Could any one please give me the location of the module_param macro
This page shows how to use it, but doesnt tell me where its defined
http://docs.blackfin.uclinux.org/doku.php?id=module_parameters
Thanks
QuoteReplyEditDelete
2008-03-28 21:04:39 Re: module_param macro
Mike Frysinger (UNITED STATES)
Message: 53273 ive updated the document, but you use linux/module.h for all kernel module related things
QuoteReplyEditDelete
2008-03-31 12:32:34 Re: module_param macro
blue hash (UNITED STATES)
Message: 53374 Thanks for the update.
The link which you updated is this:
http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:module_parameters&s=module%20param
The one which I gave goes to a "Topic does not exist"
I made sure I have the linux/module.h file include in the code.
But for eg.
module_param(yres, int, 0666); (where #define YRES 240 ,static int yres = YRES)
throws this error:
error: size of array ‘type name’ is negative
Any help with the error.
Thanks.
QuoteReplyEditDelete
2008-03-31 13:19:04 Re: module_param macro
Mike Frysinger (UNITED STATES)
Message: 53375 giving write permission to everyone is an error
QuoteReplyEditDelete
2008-03-31 14:11:47 Re: module_param macro
blue hash (UNITED STATES)
Message: 53377 Mike,
Im sorry I didnt get you.
QuoteReplyEditDelete
2008-03-31 14:34:02 Re: module_param macro
Mike Frysinger (UNITED STATES)
Message: 53379 please read the documentation for the module_param() macro. the last field is the userspace permissions.