Hi! On Tuesday 07 February 2006 14:44, Avishay Traeger wrote: > On Tue, 2006-02-07 at 14:19 +0100, Andreas Gaupmann wrote: > > Is there a way to get the absolute path of the binary that has been > > loaded into a task_struct structure? > > This question was asked a month or two ago. I believe my suggestion was > to look at how proc does it - /proc/<pid>/exe is a symlink to the > executable. I think somebody even posted some code. I suggest you > search the archives. Feel free to post again if you can't find it or > still need help. > I've searched the archives and found two entries discussing this: http://mail.nl.linux.org/kernelnewbies/2005-12/msg00406.html Catch: proc_pid_cmdline() or task_name() return only the same as task_struct->comm. http://mail.nl.linux.org/kernelnewbies/2002-04/msg00227.html Catch: Here I don't know where to get the inode from. Thus, the problem is not solved yet. I haven't found the mentioned posting because there are so many related to task_struct. Can you please provide the link to it? Regards Andreas Gaupmann -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/