From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 04:55:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A88F37B407 for ; Mon, 9 Jun 2003 04:55:34 -0700 (PDT) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C12743FAF for ; Mon, 9 Jun 2003 04:55:32 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 32189 invoked from network); 9 Jun 2003 11:55:30 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 9 Jun 2003 11:55:30 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h59BtQGI004337; Mon, 9 Jun 2003 07:55:27 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030608201656.5d8102d5.vladg@vipnet.ro> Date: Mon, 09 Jun 2003 07:55:27 -0400 (EDT) From: John Baldwin To: Vlad GALU cc: freebsd-hackers@freebsd.org Subject: RE: kvm questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 11:55:35 -0000 On 08-Jun-2003 Vlad GALU wrote: > > Hello. I am trying to write a monitoring program > which makes use of the kvm interface. My problem here > is that I couldn't find a detailed description of the > kinfo_proc structure anywhere in the system sources or > Google. I have special interests towards the kp_proc & > kp_eproc members. I can't get the process names until > I know what those structures look like. I also posted this > message to freebsd-stable, because I understand that > the kinfo_proc structure has changed a bit between > -stable and -current. My platform is 4.8-STABLE. Most of the fields in kinfo_proc() are copies of the same fields in struct proc/thread/etc. declared in sys/proc.h. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/