Date: Mon, 13 Sep 2004 15:51:07 +0300 From: Peter Pentchev <roam@ringlet.net> To: Sam Lawrance <boris@brooknet.com.au> Cc: freebsd-hackers@freebsd.org Subject: Re: struct proc - basic question Message-ID: <20040913125107.GB839@straylight.m.ringlet.net> In-Reply-To: <1095078631.77709.53.camel@dirk.no.domain> References: <Pine.OSF.4.58.0409131355160.185678@sulu.ae.katowice.pl> <1095078631.77709.53.camel@dirk.no.domain>
next in thread | previous in thread | raw e-mail | index | archive | help
--DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 13, 2004 at 10:30:31PM +1000, Sam Lawrance wrote: > On Mon, 2004-09-13 at 22:01, Joanna Sledzik wrote: > > Hi :) > > I'm very very begginer in Unix system programming. > > What function should I use to catch the struct proc for some process? > > Is it possible to get the pointer to struct proc using for example the = pid_t pid > > as an argument? >=20 > >From userland, maybe the kvm_* functions will do what you want. > See the kvm, kvm_open and kvm_getprocs manpages. The kern.proc.all sysctl might be a better idea; see my other e-mail for details. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I am jealous of the first word in this sentence. --DKU6Jbt7q3WqK7+M Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBRZe77Ri2jRYZRVMRAlbSAKCxllbLZFZ62qaF1VLwlpXEMrAzXgCfd0Rn I5KmAXGltV72jXjd6zHEr2k= =gVog -----END PGP SIGNATURE----- --DKU6Jbt7q3WqK7+M--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040913125107.GB839>