LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-04-2007, 02:49 PM   #1
sha_neb
Member
 
Registered: May 2007
Posts: 34

Rep: Reputation: 15
from kernel data structures ?


Hi ,

How do I get the following info of a process
from kernel data structures ?

1. command line ,
2. current working directory ,
3. environment ,
4. executed command ,
5. root directory.

I know these can be obtained from the proc . But how do I get from kernel data structures ?



thanks,
sha
 
Old 06-08-2007, 04:54 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
In your case, everything is in the process descriptor or is linked from there. /proc is an interface to kernel structures, and a very useful one. Is there a specific reason you don't want to use it? Apart from /proc you have sysctls and ioctls, which are harder to use.
 
  


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 with Data Structures in C kalamaraki Programming 3 10-29-2006 10:48 AM
data structures used by ls command vishalbutte Programming 1 01-19-2006 03:47 PM
kernel data structures vishalbutte Programming 8 01-05-2006 04:19 PM
Data structures - Trees rahul_kulkarni Programming 1 05-16-2005 06:45 AM
java data structures tunedLow Programming 4 12-17-2002 12:51 PM


All times are GMT -5. The time now is 04:14 PM.

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