From owner-freebsd-hackers Wed Oct 18 12:47:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.getrelevant.com (mail.getrelevant.com [63.211.149.12]) by hub.freebsd.org (Postfix) with ESMTP id 2422537B4C5 for ; Wed, 18 Oct 2000 12:47:09 -0700 (PDT) Received: from khmere.com ([63.211.149.44]) by mail.getrelevant.com (Lotus Domino Release 5.0.4a) with ESMTP id 2000101812450540:253604 ; Wed, 18 Oct 2000 12:45:05 -0700 Message-ID: <39EDFE2E.583B5631@khmere.com> Date: Wed, 18 Oct 2000 12:46:54 -0700 From: Nathan Boeger Organization: Getrelevant X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "freebsd-hackers@FreeBSD.ORG" Subject: struct proc and struct vmspace help, please X-MIMETrack: Itemize by SMTP Server on notes/GetRelevant(Release 5.0.4a |July 24, 2000) at 10/18/2000 12:45:05 PM, Serialize by Router on notes/GetRelevant(Release 5.0.4a |July 24, 2000) at 10/18/2000 12:45:07 PM, Serialize complete at 10/18/2000 12:45:07 PM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have the need for the /proc//status file inside the linprocfs. So I have added it to the linprocfs_misc.c Well the only problem I am having is the VmRSS: field. How do I get the rssize from inside the kernel for a process ? from userland I can do: struct kinfo_proc->kp_eproc . e_vm . vm_rssize ( like top ) but from inside the struct proc what do I use ? I have tried the struct vmspace but it give me strange numbers (well, maybe not strange but are they in pages ? bytes ? and why are they 0 sometimes ? ) I have looked and explored all over the headers, but I am stuck. Any help will be greatly appreciated !!! thank you nathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message