diff options
Diffstat (limited to 'hello/start.c')
-rw-r--r-- | hello/start.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hello/start.c b/hello/start.c new file mode 100644 index 0000000..224aeed --- /dev/null +++ b/hello/start.c @@ -0,0 +1,15 @@ +#include <linux/module.h> +#include <linux/kernel.h> +#include <linux/init.h> + +static int __init hello_2_init(void) +{ + printk(KERN_INFO "Hola, mundo! 2\n"); + return 0; +} + +module_init(hello_2_init); + +MODULE_AUTHOR("Guillermo Ramos"); +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("Módulo tonto"); |