Re: Help on unresolved symbol

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

 



On Mon, Sep 16, 2002 at 12:49:35PM +0000, rajeev naidu wrote:
> I am trying to access symbol from ksysm using "get_kernel_syms". When i am 
> compling it's fine. But when i trying to insmod it's giving error.
> 
> unresolved symbol get_kernel_sysm.I am working on kernel 2.4.17. Can anyone 
> please guide me.

Only symbols for which EXPORT_SYMBOL or EXPORT_SYMBOL_GPL with that
symbol as argument is stated somewhere are visible to modules. Almost
all (but there are few exceptions) these "directives" appear in
kernel/ksyms.c. AFAICS looking there, get_kernel_syms is not exported,
so you can't use it from modules unless you add it to kernel/ksyms.c and
recompile kernel.

(The reason for this is, that kernel is size critical and so only
symbols that are actualy needed by some modules are exported.)

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux