mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
20 lines
305 B
C
20 lines
305 B
C
/*
|
|
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");
|
|
}
|