Skip to content

Instantly share code, notes, and snippets.

@TommyWu-fdgkhdkgh
Created September 27, 2019 19:33
Show Gist options
  • Select an option

  • Save TommyWu-fdgkhdkgh/0d20abee3e021d26d135b36a8b8cad50 to your computer and use it in GitHub Desktop.

Select an option

Save TommyWu-fdgkhdkgh/0d20abee3e021d26d135b36a8b8cad50 to your computer and use it in GitHub Desktop.
/*
* $Id: hi.c,v 1.5 2004/10/26 03:32:21 corbet Exp $
*/
#include <linux/init.h>
#include <linux/module.h>
//MODULE_LICENSE("Dual BSD/GPL");
static int __init hi_init(void)
{
printk(KERN_ALERT "Hello, world\n");
printk("Hello, worldddddd\n");
return 0;
}
static void hi_exit(void)
{
printk(KERN_ALERT "Goodbye, cruel world\n");
}
module_init(hi_init);
module_exit(hi_exit);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment