Created
May 3, 2019 14:49
-
-
Save md-jamal/18ef9be1017a9597f40a5ea3a386e62a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/kernel.h> | |
static int myinit(void) | |
{ | |
pr_alert("pr_alert\n"); | |
pr_crit("pr_crit\n"); | |
pr_err("pr_err"); | |
pr_warning("pr_warning\n"); | |
pr_notice("pr_notice\n"); | |
pr_info("pr_info\n"); | |
pr_debug("pr_debug\n"); | |
return 0; | |
} | |
static void myexit(void) { } | |
module_init(myinit) | |
module_exit(myexit) | |
MODULE_LICENSE("GPL"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment