Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Nov 1998 23:31:03 -0800 (PST)
From:      "Jason K. Fritcher" <jkf@calweb.com>
To:        hackers@FreeBSD.ORG
Subject:   Process table question
Message-ID:  <Pine.BSF.4.02A.9811162323170.5490-100000@web2.calweb.com>

next in thread | raw e-mail | index | archive | help

Hello. I am making a system monitor for FreeBSD 2.[12].x and 3.0, and am
trying to find a kvm-independant way of counting the number of processes in
the process table. I have thought about using opendir() on /proc and
counting the number of directory entries, but I was wondering if there was
something like a sysctl or other system call to gather the information, or
is the /proc method the best?

Thanx!

--------------------------------------------------------------------------
Jason K. Fritcher                                     System Administrator
jkf@calweb.com                                    CalWeb Internet Services
http://www.calweb.com/                                        916-641-9320
--------------------------------------------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9811162323170.5490-100000>