Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2008 13:47:50 +0100
From:      "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" <fernando.apesteguia@gmail.com>
To:        freebsd-emulation@freebsd.org
Subject:   linprocfs question. Porting app from linux to freebsd
Message-ID:  <1bd550a00801040447p3d0d43f6n87c79c51bb3cb508@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.)

Thanks in advance.

PS: some options have already been discussed in the hackers@ and
questions@ lists.



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