linux system call definition

3 views
Skip to first unread message

vivek-MT2009146

unread,
Feb 19, 2010, 1:39:52 AM2/19/10
to Linux kernel IIITB
Hi,

Where to find linux system call definition code?

Thanks,

Vivek

Chitresh

unread,
Feb 19, 2010, 4:15:07 AM2/19/10
to Linux kernel IIITB
There's no one place where you can find the code for all the system
calls, its scattered through the code. Look for each system call
separately.

This site is good for browsing the code :

http://lxr.linux.no/+trees

You can search and locate symbols ( functions, variables etc.) in the
code.

Bharath

unread,
Feb 19, 2010, 6:57:36 AM2/19/10
to kernel...@googlegroups.com
Hi,
I think the only way to find out the location of the code is to navigate to /usr/bin folder (where you will find the executables) and then switch to SELinux to find out the path of the original source of the executable.
--
With Regards,
Bharath

Kapil Ratnani

unread,
Feb 19, 2010, 8:37:46 AM2/19/10
to kernel...@googlegroups.com
After installing the kernel sources you get all the source code in the /usr/bin folder, but browsing through it is a pain especially when you are searching for a particular structure defination and that struction has refrences to other structures. Finding function is somehow easy, but structures make u go round and round.

Better use a source code browsing site like koders.com or http://students.mimuw.edu.pl/lxr/ or the one mentioned above.
--
Kapil Ratnani
MT2009119
================================
                       TheRiPPer
================================

Pranay Airan

unread,
Feb 19, 2010, 8:41:35 AM2/19/10
to kernel...@googlegroups.com
alternatively you can use a tool called Cscope it is specially meant for big source code browsing. If you have ubuntu 8 you can install Kscope over cscope which will provide you GUI for same thing

--
Thanks
Pranay Airan
Mtech. IIIT-B
(91) 9036297912
The hardest work in the world is that which should have been done yesterday.
Reply all
Reply to author
Forward
0 new messages