Re: where to look at userspace implementation of fork() and clone()?

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

 



On Fri, Apr 25, 2008 at 7:39 AM, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
> I did not tried the glibc approach.
>
> But to answer how the specific transition from fork() to sys_fork()
> (in  kernel) is made:
>
> In /lib/libc.so.6:
>
> objdump -t libc.so.6 | grep fork
>
> show that fork() API is implemented inside this file.
>
> Then objdump -d to disassemble the file, and search  for fork:
>
> 44153710 <__fork>:
> 44153710:       55                      push   %ebp
> 44153711:       89 e5                   mov    %esp,%ebp
> 44153713:       57                      push   %edi
> 44153714:       56                      push   %esi
> 44153715:       53                      push   %ebx
>
> 44153937:       b8 f0 00 00 00          mov    $0xf0,%eax ========> for sys_fork().

$0xf0 is not the syscall number for fork()?

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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