From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: how set_user_nice() function is called
Date: Mon, 21 Nov 2011 08:59:11 +0700 [thread overview]
Message-ID: <CAGdaadaDSRnBpZz0c8GB9qEriQu-cGw=91esi2NwvoZxXHwqng@mail.gmail.com> (raw)
In-Reply-To: <CAA9-PzHr_gfBngOsaGmuNnoxGxPZV+oqN0ZWmTTPWeLxpULAtA@mail.gmail.com>
On Mon, Nov 21, 2011 at 00:31, Enes Albay - ??? ?????
<albayenes@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
next prev parent reply other threads:[~2011-11-21 1:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-20 17:31 how set_user_nice() function is called Enes Albay - انس الباى
2011-11-21 1:59 ` Mulyadi Santosa [this message]
2011-11-22 10:23 ` Enes Albay - انس الباى
2011-11-23 8:55 ` rohan puri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGdaadaDSRnBpZz0c8GB9qEriQu-cGw=91esi2NwvoZxXHwqng@mail.gmail.com' \
--to=mulyadi.santosa@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).