Re: Getting path name of the process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux