Last active
December 20, 2015 05:18
-
-
Save sjp38/6077499 to your computer and use it in GitHub Desktop.
android module example
This file contains 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" | |
int init_module(void) | |
{ | |
printk(KERN_INFO "Hello android kernel...\n"); | |
return 0; | |
} | |
void cleanup_module(void) | |
{ | |
printk(KERN_INFO "Goodbye android kernel...\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment