I think I have found the answer (within the RTAI rt_cal CPU frequency
checking code). You used to be able to pass parameters as (ignoring all
the header stuff):
char *str;
int inp;
int init_module( void )
{
/* test without type checking! */
(void) printk("str=%s inp=%d\n",str,inp);
/* return normally */
return 0;
}
void cleanup_module( void) {}
Now, it appears that I must change the code to
const char *str;
const int inp;
MODULE_PARM(str,"s"); /* register parameter as a string */
MODULE_PARM(inp,"i"); /* register parameter as an int */
int init_module( void )
{
/* test without type checking! */
(void) printk("str=%s inp=%d\n",str,inp);
/* return normally */
return 0;
}
void cleanup_module( void) {}
This works for me and gets rid of the unknown parameter error that stops
the module from loading.
+==================================================================+
Phil Daly, NOAO/AURA, 950 N. Cherry Avenue, Tucson AZ 85719, U S A
E-mail: [EMAIL PROTECTED] V-mail: (520) 318 8438 Fax: (520) 318 8360
--- [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/