lkml.org 
[lkml]   [1999]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectModule dependancies...

I'm trying (just toying around really) to make two modules, one which uses
a function from another, and can't seem to manage to get the second one to
work. The first (hello.o) declares a function hello_ps, and exports it
with "EXPORT_SYMBOL(hello_ps);". The other (world.o) has

extern void hello_ps(void);

int init_module(void) {
hello_ps();
return(0);
}

The problem being, if I load them, I get

zarniwoop:/devel/kernel# insmod hello.o
zarniwoop:/devel/kernel# insmod world.o
init_module: found dependency that is (no longer?) a module.
world.o: init_module: Invalid argument
zarniwoop:/devel/kernel#

nm seems to show them having the correct symbols exported and needed, and
after loading the first one, /proc/ksyms has hello_ps as expected -- what
am I doing wrong?

-- Peter

"The surest way to corrupt a youth is to instruct him to hold in higher
esteem those who think alike than those who think differently."
-- Nietzsche


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.025 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site