On Sat, 08 Jun 2013 08:03:29 +0800, lx said: > When initializatie structure of current? > Where initializate structure of current? which one source file ? When a new process is created, of course. (Keep in mind that where 'current->' points changes at every single context switch, by definition. And on a multicore box, current-> almost certainly points different places on each CPU. So look around in kernel/ for where 'struct task' gets set up. kernel/fork.c might be a good place to start. :)
Attachment:
pgpIoyoRqnfy5.pgp
Description: PGP signature
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies