> Hi > > Iam trying to implement a new system call ("test") in linux kernel. when > iam done with make dep and do make bzImage, i get the following error: > > > In arch/i386/kernel/kernel.o: In function 'sys_call_table': > arch/i386/kernel/kernel.o(data+0x3d4): undefined reference to 'sys_test' > > I am using kernel 2.4.2. and the last few lines of my my > /arch/i386/kernel/entry.S looks like this: > > .rept NR_syscalls-(.-sys_call_table)/4 > .long SYMBOL_NAME (sys_ni_syscall) > .endr > > and there are 226 system call entries in /arch/i386/kernel/entry.S and in > /include/asm/unistd.h . This number includes even my system call entry. > > > can someone help me in resolving this error?? Undefined reference means, that you use - and in syscall table you USE symbols - a symbol, that is not defined. Did you really define globally available function sys_test and did it really get compiled? -------------------------------------------------------------------------------- - Jan Hudec `Bulb' <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/