LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-19-2006, 04:44 PM   #1
smoothdogg00
Member
 
Registered: Feb 2006
Location: Maine
Distribution: Ubuntu
Posts: 44

Rep: Reputation: 15
Question Displaying Process Information From task_struct


I have to somehow retrieve process information from task_struct and display it in in the terminal, like ps does. However, I may also have to add my own code to the sched.c and sched.h files, so I can't simply use a system call that already exists in my program.

How might I go about this and what is the best way to access the task_struct information? I have already read numerous threads and web sites, none of which contain much detail. Any help would be appreciated!
 
Old 12-19-2006, 04:57 PM   #2
smoothdogg00
Member
 
Registered: Feb 2006
Location: Maine
Distribution: Ubuntu
Posts: 44

Original Poster
Rep: Reputation: 15
Also, if anyone knows what the "likely()" and "unlikely()" functions in sched.c do, please let me know!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
task_struct of a process swaroopjoshi Linux - Kernel 1 11-09-2006 04:08 PM
top command ram problem displaying negative value for process xekhz Linux - General 1 06-10-2006 03:01 AM
accessing task_struct of process shukla_chanchal Linux - General 1 11-04-2005 09:27 PM
How to use task_struct to get process information?? Pratik H Pandya Programming 2 09-15-2005 03:40 AM
about displaying process memory usage maginotjr Slackware 2 09-13-2005 11:43 AM


All times are GMT -5. The time now is 04:45 AM.

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