Seres Lucian wrote:
> 
> In my RTL v2.2.a I can't send parameters to a module.
> I tried
> insmod my_module my_symbol=my_value,
> where my_module is my module,
> my_symbol is a parameter defined in my_module like
> static int my_symbol=0
> and my_value is an integer number like 4 or 5 or
> else. But seems that he doesn't like it because he sais that my_symbol is
> an invalid parameter.
> Is there something else i can do for it, or I can only communicate with
> rt-threads by fifos?
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/

Hi Seres,

You need the following in your module:

static int my_symbol = 0;
MODULE_PARM(my_symbol, "i");

Now you should be able to set the value of my_symbol when the module is
inserted into the kernel, ie:

insmod my_module.o my_symbol=my_value


Best regards,

Steve

-- 

Zentropix - A Lineo company.
Visit http://www.zentropix.com/

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to