Skip to content

Instantly share code, notes, and snippets.

@sjp38
Last active December 20, 2015 05:18
Show Gist options
  • Save sjp38/6077499 to your computer and use it in GitHub Desktop.
Save sjp38/6077499 to your computer and use it in GitHub Desktop.
android module example
#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