secgateway/Product/modules/demo/main.c

23 lines
434 B
C
Executable File

#ifdef __KERNEL__
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");
#define VERSION ("v0.0.0.1")
static int demo_init(void)
{
printk(KERN_ALERT "Hello vBRAS Product user demo version: %s\n", VERSION);
return 0;
}
module_init(demo_init);
static void __exit demo_exit(void)
{
printk(KERN_ALERT "Bye vBRAS Product user demo version: %s\n", VERSION);
}
module_exit(demo_exit);
#endif // __KERNEL__