Skip to content

Instantly share code, notes, and snippets.

@kerie
Created November 15, 2010 09:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerie/700215 to your computer and use it in GitHub Desktop.
Save kerie/700215 to your computer and use it in GitHub Desktop.
#include<linux/init.h>
#include<linux/module.h>
static int hello_init()
{
printk("\nhello world\n");
return 0;
}
static int hello_exit()
{
printk("Goodbye world\n");
}
module_init(hello_init);
module_exit(hello_exit);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment