[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
exploring init_task
Hi,
This is another attempt to find the details of init_task.
asm/processor.h
#define init_task (init_task_union.task)
I am trying to figure, what goes into this init_task. By trial and
experiment i found that init_task
is circular list and if we start at init_task and traverse the chain, we
again hit init_task after some
iterations. Each link in this chain is a 'task_struct' item.
What i am unable to find out is , does this 'task_struct' item, if it is not
currently using the CPU, i.e
it is not running, then what will happen to the members of this task_struct
and their members and their
members? Do they get paged out and get paged-in only when this 'task_struct'
item is currently being run
on CPU?
These are the doubts i got while, trying to traverse init_task circular
list, because, whenever i try to access
any member( i did check for NULL ptrs etc), i get this message:
Unable to handle kernel paging request at virtual address 78302d64
printing eip:
cc8300bf
*pde = 00000000
Oops: 0000
Pls help me in understanding the inner details of kernel
Regards
Venkat
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.surriel.com/kernelnewbies.shtml