[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

info reg. init_task



Hi
I am trying to use init_task to go thru all the tasks.
The code is like this:
for ( next = tsk; next != NULL ;next = next->next_task )
This guys goes into forever loop.What mistake i am doing here?
Can i use init_task for this?
My basic aim is to understand task_struct's and to see if i can use
init_task to write a progrm like 'ls'.

Venkat

-
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.surriel.com/kernelnewbies.shtml