From mboxrd@z Thu Jan 1 00:00:00 1970 From: aftnix@gmail.com (Arif Hossain) Date: Mon, 03 Dec 2012 18:50:59 +0600 Subject: Getting address of a symbol from kernel's symbol table. In-Reply-To: References: Message-ID: <50BCA033.5000907@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 12/02/2012 09:49 PM, Mulyadi Santosa wrote: > Hi... > > On Sun, Dec 2, 2012 at 5:43 PM, arif wrote: >> To be able to do that i need the address of the function. >> >> I've seen that from user space i can read /proc/kallsyms to get an >> address of a symbol. Is their any similar mechanism exist where i can >> read the symbol table to extract a symbol's address from kernel space? > > check http://lxr.linux.no/#linux+v3.6.8/include/linux/kallsyms.h > > I have a good guess, what you need is kallsyms_on_each_symbol() > Thanks for the pointer. I'm testing what can be done. -- Cheers arif