Re: hi Where initializate structure of current?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux