Skip to content

Instantly share code, notes, and snippets.

@pao
Created October 10, 2010 19:38
Show Gist options
  • Save pao/619505 to your computer and use it in GitHub Desktop.
Save pao/619505 to your computer and use it in GitHub Desktop.
obj-m += mod1.o
#include <linux/module.h>
#include <linux/init.h>
static int __init test_init(void) {
printk("test module loaded\n");
return 0;
}
static void __exit test_exit(void) {
printk("test module unloaded\n");
}
module_init(test_init);
module_exit(test_exit);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment