LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-03-2010, 04:49 AM   #1
suresh.j
Member
 
Registered: Jul 2010
Posts: 38

Rep: Reputation: 15
ownsyscall problem


hi,
i am working in opensuse.
i want to add own systemcall in kernel but which file i update the details of my own system call.
please send me the paths in which i need to update my systemcall.
don't send me any links because i already saw many links there is no updation of paths details(especially linux 2.6.34).
 
Old 08-05-2010, 05:03 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,619
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Did you try this link:
http://tldp.org/HOWTO/html_single/Im...inux-2.6-i386/
 
1 members found this post helpful.
Old 11-23-2012, 03:16 AM   #3
Vicky Kalra
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
its for 2.6.17

Anisha,
the link that u sent is for 2.6.17 kernel.
This is for 2.6.17 kernel.
The correct unistd.h that has to be used in 2.6.32 kernel is not there.
If u can help in that will be better.
I renamed all the unistd.h files to something else
except include/linux/unistd.h
which contains only this much code.

#ifndef _LINUX_UNISTD_H_
#define _LINUX_UNISTD_H_

/*
* Include machine specific syscall numbers
*/
#include <asm/unistd.h>

#endif /* _LINUX_UNISTD_H_ */

I am not able to any other relevent unistd.h.
Let me know if I am missing something.
Thanks
 
Old 11-23-2012, 03:43 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,619
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
Originally Posted by Vicky Kalra View Post
The correct unistd.h that has to be used in 2.6.32 kernel is not there.
Not sure if I have understood your problem correctly.

From here:
http://tldp.org/HOWTO/html_single/Im....6-i386/#AEN59

Quote:
6. unistd.h

Full path of the file - /usr/src/linux/include/asm-i386/unistd.h
I have usr/src/linux/include/asm-generic/unistd.h.
This file is not empty.
It seems to contain all the relevant code as shown in that pdf.

P.S.

This is a quite old thread. Though your question is relevant, I suggest that you
create a new thread for your new problems to get proper attention.
 
Old 11-23-2012, 03:59 AM   #5
Vicky Kalra
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
Anisha,
I will definetly post a new thread.
In brief,
I am trying to implement a new system call using the method given in
http://www.tldp.org/HOWTO/html_singl....6-i386/#AEN59
for kernel 2.6.32.60
This method given in the above kernel is for 2.6.17
Now the directory i386 does not exist in this kernel.
The replacement is x86. Like arch/i386/kernel/syscall_table.S is also not there, but /arch/x86/kernel/syscall_table_32.S is there.
Likewise there is a change in the name and location of other files.
I am facing issues only with include/linux/unistd.h
Just follow the link
http://lxr.linux.no/#linux+v2.6.32.6...linux/unistd.h
the file redirects to some other file which I was not able to find.
I will explain my problem in fuller detail regarding the exact files I used in a new thread by eod.
And thanks for your quick reply.
Regards,
Vicky
 
Old 11-23-2012, 04:03 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,619
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Did you click the link I posted in my above post?

It says: /usr/src/linux/include/asm-
On my system it is asm-generic.
What is it on your system?
 
Old 11-23-2012, 04:10 AM   #7
Vicky Kalra
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
Mam that is what I am saying.
The names and location of the files given in your link is for kernel 2.6.17
I am using 2.6.32.60 kernel.
Let me know if the locations given in your relevent in 2.6.32 kernel.\
Kindly read my previoud post. the Names and locations have changed since 2.6.17 to 2.6.32!!!!
Other files I was able to find, one of which I mentioned in my previous post.
excpet that correct unistd.h.
If u can help me in that and thanks.
 
Old 11-23-2012, 04:12 AM   #8
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,619
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
and I am using 2.6.37.
My folder's name is "asm-generic" rather than "asm-i386".
Whatever is the name of your asm-xxx, try finding this file in that folder.
 
Old 11-23-2012, 04:18 AM   #9
Vicky Kalra
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
I already tried with that. Renamed the above mentioned file and tried making the kernel to see if any compilation error occured.
None occured. So it means the above mentioned file is not used (correct me if needed).
it showed the compilation error only when I renamed include/linux/unistd.h to something else, which means this file is used.
Thanks.
 
  


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
Slackware 12.0: boot problem & sudo / wifi-radar problem War_Ensemble Slackware 7 01-15-2008 09:49 AM
Solved Problem Second GCC-Pass(or gettext sanity check problem) hoes Linux From Scratch 0 09-04-2005 10:20 AM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
Lan configuration problem - NFS boot problem - RX&TX packets errors 242VDM242 Linux - Networking 4 11-25-2004 01:35 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM


All times are GMT -5. The time now is 12:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration