1 /*
2  *  SPDX-License-Identifier: GPL-2.0+ or MIT
3  */
4 #include <linux/module.h>
5 #include <linux/kernel.h>
6 
7 static int number= 1;
8 static char *who = "World";
9 
10 module_param(number, int, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
11 MODULE_PARM_DESC(myint, "Just some number");
12 module_param(who, charp, 0000);
13 MODULE_PARM_DESC(who, "Whot to greet");
14 
init_module(void)15 int init_module(void)
16 {
17 	printk(KERN_INFO "Hello %s (%d)!\n", who, number);
18 	return 0;
19 }
20 
cleanup_module(void)21 void cleanup_module(void)
22 {
23 	printk(KERN_INFO "Goodbye %s (%d)!\n", who, number);
24 }
25 
26 MODULE_LICENSE("Dual MIT/GPL");
27