list_head and struct_task

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

 



Hi All,
      Linux kernel make use list_head to link process descriptor. I am reading scheduler part of Linux kernel. There is structure *runqueue* that contains list of all runnable process. The *runqueue* has pointer to *prio_array_t* structre that have field *queue*(array of struct prio_array_t) which list process according to priority. The scheduler gets head_list from this queue.

I did not understand how scheduler gets process desciptor address corrosponding to list_head, which it (scheduler) gets from runqueue list??  Please point me to code gthat does this translation.



Thanks
     Shyam

[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