On Tuesday 23 April 2002 06:12 am, you wrote: > 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 ? > It is possible you could look at how the /proc/pid/exe link works, but > I'm not sure where that code lives.. I used d_path() in sched.h. It works perfectly. Actually I started searching form proc/base.c and ended up there ;-) Thanks for all the help.. Thanks Sridhar -- Anyone can do any amount of work provided it isn't the work he is supposed to be doing -- Murphy's Laws on Work -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/