Results 1 to 5 of 5
i need help to develope the code that can display the active task lists by adding proc entry which can access the active tasks...
- 09-09-2008 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 3
how to add proc entry for displaying task lists.
i need help to develope the code that can display the active task lists by adding proc entry which can access the active tasks
- 09-09-2008 #2Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
- 09-10-2008 #3Just Joined!
- Join Date
- Sep 2008
- Posts
- 3
but how can my program read that proc file to extract the information about all processes to display the process id's and their names as like ps command works... please give me some hints as soon as possible
- 09-10-2008 #4Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
It depends on the language you use. You could check the sources for ps, top or htop and see how they do it. They are simple tools.
- 09-11-2008 #5Just Joined!
- Join Date
- Sep 2008
- Posts
- 3
now i got the idea what actually proc entry is. i am able to add new file in the proc directory by using create_proc_entry.. i am using this function in writing a kernel module. content of structure is pid and process name of all processes. now i want to write content of this structure into that file named tasklist. how can i do it.


Reply With Quote
