Date: Fri, 4 Jan 2008 17:50:42 +0100 From: Roman Divacky <rdivacky@freebsd.org> To: Fernando Apestegu?a <fernando.apesteguia@gmail.com> Cc: freebsd-emulation@freebsd.org Subject: Re: linprocfs question. Porting app from linux to freebsd Message-ID: <20080104165042.GA67753@freebsd.org> In-Reply-To: <1bd550a00801040447p3d0d43f6n87c79c51bb3cb508@mail.gmail.com> References: <1bd550a00801040447p3d0d43f6n87c79c51bb3cb508@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 04, 2008 at 01:47:50PM +0100, Fernando Apestegu?a wrote: > Hi all, > > I was suggested to contact the linux compatibility team (or Roman > Divacky) to get some help. > > I want to port an application from Linux to FreeBSD. The linux app. > makes extensive use of the procfs. Now, I have several options to port > the software: > > 1 - Use sysctl. The problem here is that some information (about cpu > or memory, for instance) is not available through this interface. > 2 - Write a kernel module to get an uniform access (Ivan Vorak > suggested me this) > 3 - Use linprocfs. > > The easiest to me is the third point. All the access would be very > similar. However, there are some missing files in the linprocfs. I > would like to know if there are some plans of keeping adding more > linux-like files as the devices, filesystems or modules files you can > get under /proc in a linux system or I should look for another > alternative (like the module Ivan suggests.) I am sure that any patch against linprocfs implementing this will be welcomed. if you submit (adn test etc.) something, I am willing to review it and make someone to commit that :) roman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080104165042.GA67753>