Reading sys_call_table entries

Amit Purohit <[email protected]> Tue, 8 Oct 2002 15:51:14 -0400 (EDT)
Newsgroups gmane.linux.redhat.ia64.general
Message-ID <Pine.GSO.4.33.0210081542560.15604-100000@compserv1>
Hi,

I am trying to read the system call table from within a kernel module.
When I try to print the address of a system call ( for eg sys_close) , the
displayed address is different from the address that is available in the
/proc/ksyms. ( machine config ia-64 redhat 7.1 linux2.4.17)

In the kernel module I am not doing anything special but simple

printk for sys_call_table[__NR_close - 1024];

Is there something I am missing out. I understood from some mail threads
that the sys_call_table doesn't contains the pointers to the functions (
system calls ) instead it contains the pointer to a descriptor which has
function  pointer and gp. Then I tried to print the new address by adding
one more level of indirection but still it gives me different address.

Thanks
-- Amit.