Doubt fork system call
rohan puri
rohan.puri15 at gmail.com
Wed Sep 7 23:45:07 EDT 2011
Thanks Darshan. I went through that section of the book. I do agree that
fork(), vfork() in turn calls the clone() sys call which internally calls
do_fork() method.
The doubt which I have is there is a sys_fork() method which gets called
when fork() system call is invoked. But from userspace is there any way in
which we can make execute this code path, because if we make use of fork()
it will call clone() sys call and follow that code path. What I am trying to
figure out is that is that code (sys_fork() ) is redundant now or is
something still using it.
Regards,
Rohan.
On Wed, Sep 7, 2011 at 5:44 PM, Darshan Ghumare
<darshan.ghumare at gmail.com>wrote:
>
>
> On Wed, Sep 7, 2011 at 5:38 PM, rohan puri <rohan.puri15 at gmail.com> wrote:
>
>>
>> Every time a fork() is callled in any user-space code, it internally
>> invokes the clone() sys call, But if we linux kernel source code there is a
>> system call by name fork().
>>
>> So, what i really want to know is that, is there any case in which this
>> syscall is getting called, or this code is deprecated.
>>
>
> Have a look at this link,
>
> http://books.google.co.in/books?id=1nCQJE0oRE0C&pg=PA31&lpg=PA31&dq=fork+robert+love&source=bl&ots=Zhn6QR9ZJ7&sig=Y7X0gQx10QoK6VRydG2dUGUADf0&hl=en&ei=tF9nTt-5Jo3IrQeUq6CKCw&sa=X&oi=book_result&ct=result&resnum=2&ved=0CB4Q6AEwAQ#v=onepage&q&f=false
>
>
>>
>> Regards,
>> Rohan
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>
>
> --
> Darshan®
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110908/95da00d6/attachment.html
More information about the Kernelnewbies
mailing list