June 8, 2013
12:03 a.m.
hi : When initializatie structure of current? Where initializate structure of current? which one source file ? Thank you.
June 8, 2013
2:12 a.m.
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. :)
4815
Age (days ago)
4815
Last active (days ago)
1 comments
2 participants
participants (2)
-
lx -
Valdis.Kletnieks@vt.edu