search for: hello_exit

Displaying 1 result from an estimated 1 matches for "hello_exit".

2012 Apr 15
2
[LLVMdev] How to compile this linux-driver like programme into .bc file?
...command that can compile the following programme into a .bc file? Thank you! #include <linux/init.h> #include <linux/module.h> MODULE_LICENSE("Dual BSD/GPL"); static int hello_init(void) { printk(KERN_ALERT "Hello, world\n"); return 0; } static void hello_exit(void) { printk(KERN_ALERT "Goodbye, cruel world\n"); } module_init(hello_init); module_exit(hello_exit); -- 祝好! 甄凯 ------------------------------------------------------------------------------------------------------ 2012-04-15 ------------------------------...