From: Chris Wright <chris@wirex.com>
To: Senhua Tao <stao@nbnet.nb.ca>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: absolute path of a process
Date: Wed, 9 Jan 2002 12:47:25 -0800 [thread overview]
Message-ID: <20020109124725.B24733@figure1.int.wirex.com> (raw)
In-Reply-To: <3C3C8188.E5F7677E@nbnet.nb.ca>
In-Reply-To: <3C3C8188.E5F7677E@nbnet.nb.ca>; from stao@nbnet.nb.ca on Wed, Jan 09, 2002 at 01:44:40PM -0400
* Senhua Tao (stao@nbnet.nb.ca) wrote:
> Hi,
>
> I am new to linux kernel. I like to know is there any way to find
> the absolute path of a process. I mean, how the kernel knows which
> process is currently running? I tried to follow the current variable
> but got lost. Is the inode struct should I look at?
look at the code in fs/proc/base.c::proc_exe_link(), that should explain
it.
cheers,
-chris
next prev parent reply other threads:[~2002-01-09 20:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-09 17:44 absolute path of a process Senhua Tao
2002-01-09 20:47 ` Chris Wright [this message]
2002-01-09 23:38 ` H. Peter Anvin
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=20020109124725.B24733@figure1.int.wirex.com \
--to=chris@wirex.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stao@nbnet.nb.ca \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.