Porting from linux to FreeBSD (procfs question)

Patrick Lamaiziere patfbsd at davenulle.org
Thu Jan 3 16:01:09 PST 2008


Le Thu, 3 Jan 2008 14:14:57 +0100,
"Fernando Apesteguía" <fernando.apesteguia at 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.


More information about the freebsd-questions mailing list