Thanks for reply.

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't it? Could you
give calling order between functions from do_fork() like that
func1()->func2()->...

Regards.

On Mon, Nov 21, 2011 at 3:59 AM, Mulyadi Santosa
<mulyadi.sant...@gmail.com>wrote:

> On Mon, Nov 21, 2011 at 00:31, Enes Albay - انس الباى
> <albaye...@gmail.com> wrote:
> > Hi!
> >
> > anybody knows that where is set_user_nice() function called in the
> kernel?
> > i couldn't find that.  i just found that in forking operation
> > do_fork()->copy_process()->
> > dup_task_struct() called then set_user_nice()
> > called but i couldn't find that where. Also how/where do_fork() function
> > called in kernel i couldn't find.
>
> In x86, do_fork() is called from sys_fork()... check :
> http://lxr.linux.no/#linux+v3.1.1/arch/x86/kernel/process.c#L235
>
> While sys_fork() itself, since it's a syscall handler, is called from
> entry.S. Please refer to:
> http://lxr.linux.no/#linux+v3.1.1/arch/x86/ia32/ia32entry.S#L475
>
>
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>



-- 
Enes Albay
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to