#include
#include
#include
#include
MODULE_LICENSE("GPL");
static char *whom = "world";
static int howmany = 1;
static int __init hello_init (void)
{
int i = 0;
for (i = 0; i < howmany; i++)
printk("(%d) Hello, %s\n", i, whom);
return 0;
}
static void __exit hello_exit (void)
{
printk("Hello module exit\n");
}
module_init(hello_init);
module_exit(hello_exit);
module_param(howmany, int, S_IRUGO);
module_param(whom, charp, S_IRUGO);
阅读(2377) | 评论(0) | 转发(0) |