LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 01: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, 03:54 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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



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 09:48 AM
data structures used by ls command vishalbutte Programming 1 01-19-2006 02:47 PM
kernel data structures vishalbutte Programming 8 01-05-2006 03:19 PM
Data structures - Trees rahul_kulkarni Programming 1 05-16-2005 05:45 AM
java data structures tunedLow Programming 4 12-17-2002 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration