23 lines
442 B
C
Executable File
23 lines
442 B
C
Executable File
#include <linux/init.h>
|
|
#include <linux/module.h>
|
|
#include <linux/kernel.h>
|
|
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_AUTHOR("Michael Sweet");
|
|
MODULE_DESCRIPTION("Universal CUPS printing driver");
|
|
MODULE_VERSION("1.0");
|
|
|
|
static int __init lkm_example_init(void)
|
|
{
|
|
printk(KERN_INFO "Hello m8s\n");
|
|
return 0;
|
|
}
|
|
|
|
static void __exit lkm_example_exit(void)
|
|
{
|
|
printk(KERN_INFO "Bye m8s\n");
|
|
}
|
|
|
|
module_init(lkm_example_init);
|
|
module_exit(lkm_example_exit);
|