How to code new user defined system calls for linux

Forum Index » Forums » Programming and Development
Author Message
Joined: Sep 05, 2008
Posts: 2
Other Topics
Posted Sep 06, 2008 at 5:03:40 AM
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.
Back to top Profile Email Website
Shashank Sharma
Joined Jan 01, 1970
Posts: 1657
Location:New Delhi, India

Other Topics
Posted: Sep 09, 2008 2:35:12 PM
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!

Coauthor of Beginning Fedora: From Novice to Professional published by Apress.

Please follow the Forum Guidelines

Back to top Profile Email Website Yahoo!
ansh
Joined Sep 05, 2008
Posts: 2

Other Topics
Posted: Oct 12, 2008 9:41:33 AM
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.
Back to top Profile Email Website
Shashank Sharma
Joined Jan 01, 1970
Posts: 1657
Location:New Delhi, India

Other Topics
Posted: Oct 12, 2008 11:25:14 AM
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/

Coauthor of Beginning Fedora: From Novice to Professional published by Apress.

Please follow the Forum Guidelines

Back to top Profile Email Website Yahoo!
Rubberman
Joined Jul 30, 2007
Posts: 944
Location:40 miles west of Chicago

Other Topics
Posted: Jan 10, 2009 3:58:14 AM
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.

Sometimes real fast is almost as good as real time. Remember, Google is your friend!

Back to top Profile Email Website AOL Instant Messenger
Forum Index » Forums » Programming and Development