Re: searching exported symbols from modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 19 Apr 2006, Antti Halonen wrote:

>
> Hi,
>
> Apologies if I posted this question to wrong place.
>
> Here's the thing: when loading my module 'a', I want to search modules
> list to check if module 'b' is presents, and if it is, initialize my
> function pointers to the functions module b has exported. Or at least
> search symbols from module b, whatever. The main question is; how to
> locate modules by name from my module a?
>

`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`.

> Is this doable? Can anyone give me pointers?
>
> Sorry for posting such a stupid question, but I didn't run into
> satisfactory when searching the archive & many of the functions which
> would have resolved this are apparently not exported anymore.
>

If you are accessing functions or other objects that are not exported
anymore, how do you know that they even exist? You can search through
System.map to see if they are still global, but they might not be
the same size or type as before, or functions might take different
parameters.

You need to have built your modules using the current kernel headers
of the target OS version, using the current procedures (yes there are
some cheats that can be used), so that the current tools (like insmod
and modprobe) can properly handle your module.

> Any comments are really appreciated!
>
> Thanking in advance,
> antti
>

Cheers,
Dick Johnson
Penguin : Linux version 2.6.15.4 on an i686 machine (5589.53 BogoMips).
Warning : 98.36% of all statistics are fiction, book release in April.
_


****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to [email protected] - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux