Re: absolute path of a process

From: Chris Wright (chris@wirex.com)
Date: Wed Jan 09 2002 - 15:47:25 EST


* 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/



This archive was generated by hypermail 2b29 : Tue Jan 15 2002 - 21:00:28 EST