Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2008 00:44:57 +0100
From:      Patrick Lamaiziere <patfbsd@davenulle.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Porting from linux to FreeBSD (procfs question)
Message-ID:  <20080104004457.0e015613@roxette.lamaiziere.net>
In-Reply-To: <1bd550a00801030514i5007c67t509e05f08c820dd@mail.gmail.com>
References:  <1bd550a00801030514i5007c67t509e05f08c820dd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Le Thu, 3 Jan 2008 14:14:57 +0100,
"Fernando Apesteguía" <fernando.apesteguia@gmail.com> a écrit :

> As I know, FreeBSD has some kind of procfs but more limited in terms
> of information. My questions is how should I proceed now? I see two
> options.
> 
> 1 - Try to rely the porting on the compatibility procfs from FreeBSD
> 2 - Do the things in a completely different way (which one is this?
> Invoking sysctl system call?)
> 
> I would like to know from you which one is the best approach.

I don't know exactly what you need, but look at libkvm. Good samples
are ps and top in the source code.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080104004457.0e015613>