mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Move files up on tree
This commit is contained in:
19
kernel_module/hello2.c
Normal file
19
kernel_module/hello2.c
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Hello world module 2.
|
||||
|
||||
Mostly to check that our build infrastructure can handle more than one module!
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
int init_module(void)
|
||||
{
|
||||
printk(KERN_INFO "hello2 init\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
void cleanup_module(void)
|
||||
{
|
||||
printk(KERN_INFO "hello2 cleanup\n");
|
||||
}
|
||||
Reference in New Issue
Block a user