その他のモジュール情報 ソースコード #define __KERNEL__ #define MODULE #include MODULE_AUTHOR("Takeoka"); MODULE_LICENSE("GPL-test"); MODULE_DESCRIPTION("Test module Hello"); MODULE_SUPPORTED_DEVICE("none"); static int hello_i =0; MODULE_PARM(hello_i, "i"); /* 整数 */ MODULE_PARM_DESC(hello_i, "This is Hello's variable"); /* 説明 */ int init_module() { printk("LKM-test:Hello[hello_i=%d]¥n", hello_i ); return 0; } void cleanup_module() { printk("LKM-test:Bye bye, world ¥n"); }