Re: absolute path of a process

Chris Wright
2002-01-09T20:44:04Z

* 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