Thread (6 messages) 6 messages, 3 authors, 2012-07-18

Problem with module spanning from multiple files

From: Philipp Ittershagen <hidden>
Date: 2012-07-18 08:14:44

Hi aleksey,

On Wed, Jul 18, 2012 at 9:34 AM, aleksey [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help