Hi,
I have tried to add a new system call. I am using Fedora linux 6 ..Kernel 2.6.18.2
I followed the document http://nd.edu/~ablaich/system_call_implementation_a_blaich.txt to add a new system call.
During compilation I got the following error. I have place my system call code in ~/ipc/ which is also as follows. Does any body has idea about this error.
___________________________________________________________
In file included from include/linux/shm.h:4,
from ipc/mycall.c:2:
include/linux/ipc.h:59: error: expected specifier-qualifier-list before ʽspinlock_tʼ
ipc/mycall.c:3:21: error: inttypes.h: No such file or directory
make[1]: *** [ipc/mycall.o] Error 1
make: *** [ipc] Error 2
__________________________________________________________________
/*System call code*/
#include<linux/linkage.h>
#include<linux/shm.h>
#include<linux/types.h>
asmlinkage long sys_mycall(int i)
{
return i+10;
}_____________________________________________
I have tried to add a new system call. I am using Fedora linux 6 ..Kernel 2.6.18.2
I followed the document http://nd.edu/~ablaich/system_call_implementation_a_blaich.txt to add a new system call.
During compilation I got the following error. I have place my system call code in ~/ipc/ which is also as follows. Does any body has idea about this error.
___________________________________________________________
In file included from include/linux/shm.h:4,
from ipc/mycall.c:2:
include/linux/ipc.h:59: error: expected specifier-qualifier-list before ʽspinlock_tʼ
ipc/mycall.c:3:21: error: inttypes.h: No such file or directory
make[1]: *** [ipc/mycall.o] Error 1
make: *** [ipc] Error 2
__________________________________________________________________
/*System call code*/
#include<linux/linkage.h>
#include<linux/shm.h>
#include<linux/types.h>
asmlinkage long sys_mycall(int i)
{
return i+10;
}_____________________________________________
Send instant messages to your online friends http://uk.messenger.yahoo.com