モジュールへのパラメータの渡し方 ソースコード #define __KERNEL__ #define MODULE #include static int hello_i =0; static char *hello_s; MODULE_PARM(hello_i, "i"); /* 整数 */ MODULE_PARM(hello_s, "s"); /* 文字列 */ /* 初期化 */ int init_module() { printk("LKM-test:Hello[hello_i=%d hello_s=%s]¥n", hello_i, hello_s ); return 0; } /* 終了処理 */ void cleanup_module() { printk("LKM-test:Bye bye, world ¥n"); }