On Mon, Nov 21, 2011 at 00:31, Enes Albay - انس الباى <albayenes@xxxxxxxxx> 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 _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies