Skip to content

Instantly share code, notes, and snippets.

@md-jamal
Created April 30, 2019 16:15
Show Gist options
  • Save md-jamal/30a99bef74b0e3607d705ac5c1bb2b77 to your computer and use it in GitHub Desktop.
Save md-jamal/30a99bef74b0e3607d705ac5c1bb2b77 to your computer and use it in GitHub Desktop.
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/vermagic.h>
static int vermagic_init(void)
{
pr_info("VERMAGIC_STRING = " VERMAGIC_STRING "\n");
return 0;
}
static void vermagic_exit(void) {}
module_init(vermagic_init)
module_exit(vermagic_exit)
MODULE_LICENSE("GPL");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment