18 lines
374 B
C
18 lines
374 B
C
#include <linux/init.h>
|
|
#include <linux/module.h>
|
|
#include <linux/kernel.h>
|
|
|
|
static int __init hello_init(void) {
|
|
pr_info(KERN_INFO "Hello, Kernel");
|
|
return 0;
|
|
}
|
|
|
|
static void __exit hello_exit(void) {
|
|
pr_info(KERN_INFO "Goodbye, Kernel");
|
|
}
|
|
|
|
module_init(hello_init);
|
|
module_exit(hello_exit);
|
|
MODULE_AUTHOR("Edith Boles <edith@penguinowl.dev>");
|
|
MODULE_LICENSE("GPL");
|