mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* path_lookup for executable
@ 2006-11-20  4:00 e m
  2006-11-20  8:05 ` Arjan van de Ven
  0 siblings, 1 reply; 4+ messages in thread
From: e m @ 2006-11-20  4:00 UTC (permalink / raw)
  To: linux-kernel

I am trying to get inode for an executable program. For example, I wish to 
get inode for /usr/jdk/bin/java file in a module. The following call always 
return an error. Is there a way to get the inode of current process, 
assuming I have access to "current"

PLEASE CC' eyubo@hotmail.com your answers.

Thanks
Eyub

      err = path_lookup("/ /usr/jdk/bin/java", 
LOOKUP_FOLLOW|LOOKUP_DIRECTORY|LOOKUP_NOALT, &nd);

    path_release(&nd);

_________________________________________________________________
Talk now to your Hotmail contacts with Windows Live Messenger. 
http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-11-20 19:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-20  4:00 path_lookup for executable e m
2006-11-20  8:05 ` Arjan van de Ven
2006-11-20 19:14   ` e m
2006-11-20 19:27     ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®