help on accessing symbols

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

 



hi All,

Can anyboyd pleae suggest me to how retreive the all kernel symbols as cat
/proc/ksyms do.I can able to retreive the symbols that all local to my 
module as well EXPORT_SYMBOL from my module.

I tried like this
// For to retreive the exported symbols from my module.
struct module *my_module = THIS_MODULE

Then i used "my_module->sys" to access the symbols.

To retreive all EXPORTED KERNEL symbols i tried like this

extern struct module *module_list;
struct module *my_module;

for(my_module = module_list;my_module != NULL; my_module = (my_module 
->next))

But i cann't retreive all symbols.

Is there any way to access the "ksys" name and address of all exported
module symbols.Somebody suggested me to EXPORT_SYMBOL(module_list) in
/usr/src/linux/arch/i386/i386_ksysm.c. Then rebuild the kernel to access
that sysmbol which will having address of Kernel_module. There is no other
process avail to access the kernel sysmbols from my module as i did it for
my module.Appreciate any help.TIA

What i am trying to do is EXPORT a symbol from one module and wanne retreive 
it from some other module. Is't possible

Regards,
Rajeev



_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

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