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.<br><br>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.<br>
<br><br>Regards,<br>Rohan.<br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 5:44 PM, Darshan Ghumare <span dir="ltr"><<a href="mailto:darshan.ghumare@gmail.com">darshan.ghumare@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div class="im">On Wed, Sep 7, 2011 at 5:38 PM, rohan puri <span dir="ltr"><<a href="mailto:rohan.puri15@gmail.com" target="_blank">rohan.puri15@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><div class="gmail_quote">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().<br><br>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.<br>
</div></blockquote><div><br></div></div><div>Have a look at this link,</div><div><a href="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" target="_blank">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</a> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote">
<br>Regards,<br><font color="#888888"><font color="#888888">Rohan<br>
</font></font></div><br>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#888888">Darshan®<br>
</font></blockquote></div><br>