how set_user_nice() function is called

Enes Albay - انس الباى albayenes at gmail.com
Tue Nov 22 05:23:23 EST 2011


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.santosa at gmail.com>wrote:

> On Mon, Nov 21, 2011 at 00:31, Enes Albay - انس الباى
> <albayenes at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111122/e2cff638/attachment.html 


More information about the Kernelnewbies mailing list