LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-13-2010, 11:29 PM   #1
suresh.j
Member
 
Registered: Jul 2010
Posts: 38

Rep: Reputation: 15
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...
 
Old 08-15-2010, 11:38 AM   #2
suresh.j
Member
 
Registered: Jul 2010
Posts: 38

Original Poster
Rep: Reputation: 15
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....
 
Old 08-15-2010, 11:42 AM   #3
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Was that information missing from the link I gave you here http://www.linuxquestions.org/questi...4/#post4056569 ?
 
Old 08-15-2010, 11:55 AM   #4
suresh.j
Member
 
Registered: Jul 2010
Posts: 38

Original Poster
Rep: Reputation: 15
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...
 
Old 08-15-2010, 11:57 AM   #5
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Then post the exact error message!
 
Old 08-15-2010, 12:02 PM   #6
suresh.j
Member
 
Registered: Jul 2010
Posts: 38

Original Poster
Rep: Reputation: 15
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
 
Old 08-15-2010, 12:28 PM   #7
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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.
 
Old 08-15-2010, 09:25 PM   #8
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Rep: Reputation: 41
Read Chapter 10. System Calls of the book "Understanding the Linux Kernel, 3rd Edition"
 
Old 08-16-2010, 08:56 AM   #9
suresh.j
Member
 
Registered: Jul 2010
Posts: 38

Original Poster
Rep: Reputation: 15
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
 
Old 08-16-2010, 10:43 AM   #10
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in adding a new system call optimistsushma Programming 2 07-10-2009 01:47 AM
Problem in adding system call sid18 Linux - Kernel 2 10-22-2007 01:09 PM
Adding a new System Call cubbuk Linux - General 5 02-28-2006 11:55 PM
Adding system call dumb82 Linux - Newbie 0 07-20-2004 02:25 AM
adding system call in linux udayan Programming 1 05-02-2002 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration