[lkml]   [2006]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: path_lookup for executable
Thanks for response. Is there any other way to identify if "current"  is a 
certain program such as java. You cannot surely go by name (comm field of
task_struct). Since It could be linked. In another word, I want to identify
the executing current program. Any help appreciated.


>From: Arjan van de Ven <>
>To: e m <>
>Subject: Re: path_lookup for executable
>Date: Mon, 20 Nov 2006 09:05:57 +0100
>On Mon, 2006-11-20 at 04:00 +0000, e m wrote:
> > I am trying to get inode for an executable program. For example, I wish
> > get inode for /usr/jdk/bin/java file in a module. The following call
> > return an error. Is there a way to get the inode of current process,
> > assuming I have access to "current"
>what makes you think the current executable has any meaning? It can be
>unlinked, renamed or moved in the directory hierarchy since the program
>was started... (and if you would go by inode number.. then there's
>multiple answers possible)

Share your latest news with your friends with the Windows Live Spaces
friends module.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-11-20 20:17    [W:0.034 / U:6.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site