lkml.org 
[lkml]   [2006]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: searching exported symbols from modules
Date
From

Hi Dick,

Thanks for your response.

> `insmod` (or modprobe) does all this automatically. Anything that's
> 'extern' will get resolved. You don't do anything special. You can
> also use `depmod` to verify that you won't have any problems loading.
> `man depmod`.

Yes, I know insmod and herein the problem lies. I have a module where
I want to use functions provided by another module, _if_ it is present,
otherwise use modules internal functions.

So if I hardcode the function calls statically in my module, the insmod
goes trough of course, if the service module is present. But, it fails
if it's not.

So, I want to load up, check if the service module is present, and use
it's servides.

> If you are accessing functions or other objects that are not exported
> anymore, how do you know that they even exist?

I meant that in previous kernel version, some module symbol searching
functions were available.

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

\
 
 \ /
  Last update: 2006-04-19 15:12    [W:0.075 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site