Subject: Re: /proc + Linux emul: "exe" is no symlink
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 10/26/2006 02:16:39
>> lrwxrwxrwx 1 feyrer bedienst 0 Oct 25 00:31 /proc/19364/exe -> /bin/tcsh
>> -r-xr-xr-x 1 root wheel 298032 Aug 11 02:09 /emul/linux/proc/13537/exe
> It's bogus -- it requires a vnode-to-name translation that is not
> always possible, and, when it is, requires the storage of a great
> deal of extra information in a frequently accessed datastructure in
> the kernel.
Howzabout just saving the last-execed pathname? I conjecture (and it
is just conjecture) that that's what Linux is really doing anyway.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML email@example.com
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B