From mint-bounce@lists.fishpool.fi Thu Aug 27 14:02:29 2009 Message-ID: <4A96C949.7030702@online.no> Date: Thu, 27 Aug 2009 19:58:33 +0200 From: Jo Even Skarstein User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: mint Subject: Re: [MiNT] Finding ppid References: <6A690426CAE24D83AF57F557C703FBC4@joevenlt> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: joska@online.no Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Helmut Karlowski skreiv: >> I should have been more precise. I need to find the ppid of ANY >> process, not just the calling process. > > There is a "dirty" way. Like the old top does. It uses /proc and Fnctl. > > You will have access to the kernel-structure proc then. Yes, I've seen this. I couldn't find ppid in the available structure, but that's probably because I didn't look hard enough. > But I would also like to know whats wrong with /kern. Is it too slow? Basically there's nothing wrong with /kern. If this is the way to go, I will use it. But parsing text is slower and generates more code than if the information was available "un-encoded". Jo Even