News for hackers. Stuff that matters.
Re:Circular Linked Lists – Attributes, Implementation and Uses by a1369209993 on Thursday July 03, 2014 @11:12PM (#7987138)
Actually, the problem is that you're iterating through task_structs when you should be iterating through struct list_heads:

  struct list_head* head = &this->children;
  struct list_head* i = head->next;
  for(; i!=head ;i=i->next)
      {
      task_struct* child = container_of(i,task_struct,sibling);
      /* do stuff */
      }

There are no comments on this comment yet.