Process Family Tree code

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

 



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, &current->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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux