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

Re: 2.6.17 Kernel Sources/Headers module.h MODULE_PARM



On Sunday 25 June 2006 23:16, Stephan Seitz wrote:
> On Sun, Jun 25, 2006 at 11:06:58PM +0300, David Baron wrote:
> >This was listed as deprecated but define anyway in 2.6.16
> >It is gone!! in 2.6.17
>
> Yep, true.
>
> >I placed a #define MODULE_PARM(a,b)
>
> No,
I did that just to get a compile and see what happens. As I said, I had no 
parameters doing this.

> look in include/linux/moduleparam.h 
> You have to include this file, and there you find, how to rewrite
> MODULE_PARAM. It’s now called module_param().

Here is what I tried
#include <linux/moduleparam.h>
#define MODULE_PARM( intvar, typestr ) module_param( intvar, int, 0644  )

in realtime/realcap.c, the second argument was always "i" which I assumed 
wanted to be int.
I also assumed that the repeat of name in the moduleparam.h #define  put one 
copy through the stringify, set the default value from the other.

In kqemu.ko, the nulled version I used seemed to be OK, the thing modprobing 
with its usual defaults. Realtime is started with paramters such as "gid".

This apparently did not work.



Reply to: