On Sun, Aug 22, 2010 at 11:58 PM, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
On Sun, Aug 22, 2010 at 8:49 PM, arshad hussain <arshad.super@xxxxxxxxx> wrote:Yes this is what happened
> Ok. So you included linux/syscalls.h instead of sys/syscalls.h
> and still it cannot find
>"__NR_exit" symbol. Right? Or itNot reached here.
> compiled successfully but did not load.
Try changing the headers path for syscalls.h from sys/syscalls.h to asm/syscalls.h and
inculde unistd.h <linux/unistd.h>, you should be able to compile your module.
However, as Mulyadi explained in his post, since the syscall table is not exported in 2.6.x kernels,
you would get a warning message for an undefined symble sys_table.
Regards,
~Sharad.