Linux kernel: Difference between revisions
imported>SlothOfAnarchy m Kernel versions: Fix indent |
imported>Tomberek m Include newlines in order to flush messages. |
||
Line 98: | Line 98: | ||
static int __init hello_init(void) | static int __init hello_init(void) | ||
{ | { | ||
printk(KERN_INFO "hello world!"); | printk(KERN_INFO "hello world!\n"); | ||
return 0; | return 0; | ||
} | } | ||
static void __exit hello_cleanup(void) {} | static void __exit hello_cleanup(void) { | ||
printk(KERN_INFO "bye world!\n"); | |||
} | |||
module_init(hello_init); | module_init(hello_init); | ||
module_exit(hello_cleanup); | module_exit(hello_cleanup); |