[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Process Family Tree code
Pl explain the following code segment that iterates over a process's children
struct task_struct *task;
struct list_head *list;
list_for_each( list, ¤t->children) {
task = list_entry (list, struct task_struct, sibling);
}
The doubt is in respective second arguments in the two functions. The code is from LKD2
Cheers
Ashok
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine