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