On Tue, Apr 23, 2002 at 06:14:05AM +0530, Sridhar N wrote: > Hello, current->comm gives me the name of the executable of the > process. How do i get the full path name of the executable ? I think you will need to make a note of the executable name when in execve(2), probably your best place is open_exec() in fs/exec.c. It is possible you could look at how the /proc/pid/exe link works, but I'm not sure where that code lives.. -- http://www.wirex.com/
Attachment:
pgp00066.pgp
Description: PGP signature