July 18, 2012
8:14 a.m.
Hi aleksey, On Wed, Jul 18, 2012 at 9:34 AM, aleksey <lexa@cfotr.com> wrote:
test.c: #include <linux/kernel.h> #include <linux/module.h>
int my_module_init(void) { pr_emerg("Hello, world - this is the kernel speaking\n" ) ; return 0; }
MODULE_DESCRIPTION("test driver" ) ; MODULE_LICENSE("GPL v2" ) ; MODULE_VERSION("0.1" ) ;
module_init(my_module_init) ; module_exit(my_module_exit) ;
this should not compile. How does the compiler know the symbol "my_module_exit"? Greetings, Philipp