Thanks for reply.<br><br>I also asked that set_user_nice where and when 
is called(file and line).  I think it is not called after each forking 
operation, isn&#39;t it? Could you give calling order between functions from
 do_fork() like that func1()-&gt;func2()-&gt;...<br>
<br>Regards. <br><br><div class="gmail_quote">On Mon, Nov 21, 2011 at 3:59 AM, Mulyadi Santosa <span dir="ltr">&lt;<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Nov 21, 2011 at 00:31, Enes Albay - انس الباى<br>
&lt;<a href="mailto:albayenes@gmail.com">albayenes@gmail.com</a>&gt; wrote:<br>
&gt; Hi!<br>
&gt;<br>
&gt; anybody knows that where is set_user_nice() function called in the kernel?<br>
&gt; i couldn&#39;t find that.  i just found that in forking operation<br>
&gt; do_fork()-&gt;copy_process()-&gt;<br>
&gt; dup_task_struct() called then set_user_nice()<br>
&gt; called but i couldn&#39;t find that where. Also how/where do_fork() function<br>
&gt; called in kernel i couldn&#39;t find.<br>
<br>
</div>In x86, do_fork() is called from sys_fork()... check :<br>
<a href="http://lxr.linux.no/#linux+v3.1.1/arch/x86/kernel/process.c#L235" target="_blank">http://lxr.linux.no/#linux+v3.1.1/arch/x86/kernel/process.c#L235</a><br>
<br>
While sys_fork() itself, since it&#39;s a syscall handler, is called from<br>
entry.S. Please refer to:<br>
<a href="http://lxr.linux.no/#linux+v3.1.1/arch/x86/ia32/ia32entry.S#L475" target="_blank">http://lxr.linux.no/#linux+v3.1.1/arch/x86/ia32/ia32entry.S#L475</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div style="text-align:left">Enes Albay<span style="font-size:14pt;line-height:115%" lang="AR-SA"></span><span dir="LTR"></span><span dir="LTR" style="font-size:14pt;line-height:115%" lang="AR-SA"><span dir="LTR"></span></span><span style="font-size:14pt;line-height:115%" lang="AR-SA"></span><br>
</div><br>