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!