How to code new user defined system calls for linux
|
Author |
Message |
|
|
Posted : Sat, 06 September 2008 05:03:40
Subject :
How to code new user defined system calls for linux
I M A STUDENT OF MASTER OF COMPUTER APPLICATION. I AM DOING AN OPERATING SYSTEM PROJECT ON "USER-DEFINED SYSTEM CALL ON LINUX". I KNOW THE KNOW HOWS OF LINUX BUT AM NEW TO THE KERNAL LEVEL PROGRAMMING. CAN ANY ONE SUGGEST HOW SHOULD I BEGIN OR IS THERE ANY PRECODED PROJECT SIMILAR TO MINE SO THAT I CAN GET HELP FROM THAT ONE.
|
|
|
|
Shashank Sharma
|
Posted : Tue, 09 September 2008 14:35:12
Subject :
How to code new user defined system calls for linux
ansh, don't post your entire message in CAPS. Read through these links:
http://www.linuxjournal.com/article/4048
http://www.linux.it/~rubini/docs/ksys/
http://www.ibm.com/developerworks/linux/library/l-system-calls/
Cheers!
|
|
ansh
|
Posted : Sun, 12 October 2008 09:41:33
Subject :
How to code new user defined system calls for linux
thanks shashank,
point noted sir, from now on i wont be using caps ne more. and sir, can u guide me how to start with the project. i can do the coding part but i donno know where and what to start with.
|
|
Shashank Sharma
|
Posted : Sun, 12 October 2008 11:25:14
Subject :
How to code new user defined system calls for linux
Head over to the http://lkml.org and join the mailing list. That's the best place to ask for advice on anything related to the kernel. There are many programming specific forum boards, as well, that you can try for answers.
http://www.advancedlinuxprogramming.com/
|
|
Rubberman
|
Posted : Sat, 10 January 2009 03:58:14
Subject :
How to code new user defined system calls for linux
There are two parts to this problem: 1. The kernel side of the call. 2. The API that invokes it. First, get the kernel source for your system and look at some of the calls that might do something like what you want. Next, look at the library source code that provides the API to those calls for user-written programs. Finally, you need to find out how you link your call into the kernel. With current kernels you can either link your call directly into the kernel itself, or you can build a dynamically loadable kernel module that can be linked into the kernel at boot time. The techniques for each of these approaches are quite different. I'm sorry that I don't have enough Linux kernel experience to advise you further than this.
|