Re: Re: Re: A question about _thread_ of Linux

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

 



On 5/13/06, cheng long <kevinclcn@xxxxxxxxx> wrote:
Yes, base_addr is TLS segment base address, "man clone" will show us that
there is a five parameter clone(). However, I can't find the
five-parameter-clone's
implementation, there is only a sys_clone(), which has only one parameter.

Don't take it as a single parameter. It contains all the values
passed in the registers during the system call.

I would appreciate it if anyone can tell me which is the
implementation function.

it is do_fork(). yes the same function that implements fork(). It
taking all the parameters you are talking about. All is extracted from
pt_regs which you pass during system call.

regards
Manish Regmi

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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