hi Where initializate structure of current?

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Fri Jun 7 22:12:27 EDT 2013


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. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130607/8c02e5df/attachment.bin 


More information about the Kernelnewbies mailing list