Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2002 18:17:49 +1100 (EST)
From:      Andrew <andrew@ugh.net.au>
To:        Magdalinin Kirill <bsdforumen@hotmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: how to count number of user process?
Message-ID:  <20020204181712.P53524-100000@starbug.ugh.net.au>
In-Reply-To: <F138HPpom66BwcmL4DO0001d05d@hotmail.com>

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


On Mon, 4 Feb 2002, Magdalinin Kirill wrote:

> can anyone give an idea of C code on how to quickly count
> the number of processes for a given user? I want to patch

You could try kvm_getprocs with an argument of KERN_PROC_UID.

Andrew


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?20020204181712.P53524-100000>