Re: absolute path of a process

Chris Wright (chris@wirex.com)
Wed, 9 Jan 2002 12:47:25 -0800


* 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/