LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   steps for adding a system call (https://www.linuxquestions.org/questions/linux-kernel-70/steps-for-adding-a-system-call-826138/)

suresh.j 08-13-2010 11:29 PM

steps for adding a system call
 
hi
i am working on open suse..
can any one say what are the steps to add a system call for
linux kernel 2.6.34..
what are the exact files to be updated for the version 2.6.34.
Thank you in advance...

suresh.j 08-15-2010 11:38 AM

can any one atleast say exact procedure for adding a system call in 2.6.27 and what are the exact files to be updated....

Aquarius_Girl 08-15-2010 11:42 AM

Was that information missing from the link I gave you here http://www.linuxquestions.org/questi...4/#post4056569 ?

suresh.j 08-15-2010 11:55 AM

thanks for the information but when i am compiling the kernel it is showing some error UTSRELEASES.h. i downloaded the kernel from kernel.org twice but its showing the same error...

Aquarius_Girl 08-15-2010 11:57 AM

Then post the exact error message!

suresh.j 08-15-2010 12:02 PM

this is what the error message i got

make && make modules_install && make install
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [include/linux/utsrelease.h] Error 2

Aquarius_Girl 08-15-2010 12:28 PM

You have written the make file ? The errors may be in it !
Run only make and post the exact output here. And if there are some errors, post the Makefile here ! Then may be someone can help you.

archieval 08-15-2010 09:25 PM

Read Chapter 10. System Calls of the book "Understanding the Linux Kernel, 3rd Edition"

suresh.j 08-16-2010 08:56 AM

i am using kernel 2.6.27. Make gave me this error
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
CHK include/linux/version.h
HOSTCC scripts/unifdef
scripts/unifdef.c:209:25: error: conflicting types for ‘getline’
/usr/include/stdio.h:653:20: note: previous declaration of ‘getline’ was here
make[2]: *** [scripts/unifdef] Error 1
make[1]: *** [__headers] Error 2
make: *** [vmlinux] Error 2

Aquarius_Girl 08-16-2010 10:43 AM

I don't like this idea of yours.

You post same problems in different threads. You have posted this make error here as well as you have created a new thread for it ?

And this is not the first time you are doing it !

I do not want to reply to you now.

A different thread should be created for a different problem, that's Good,

but posting same problem in two threads is not a good idea.


All times are GMT -5. The time now is 07:41 AM.