Skip to content

Instantly share code, notes, and snippets.

@md-jamal
Created May 3, 2019 14:49
Show Gist options
  • Save md-jamal/18ef9be1017a9597f40a5ea3a386e62a to your computer and use it in GitHub Desktop.
Save md-jamal/18ef9be1017a9597f40a5ea3a386e62a to your computer and use it in GitHub Desktop.
#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