linprocfs question. Porting app from linux to freebsd
Roman Divacky
rdivacky at freebsd.org
Fri Jan 4 08:51:03 PST 2008
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
More information about the freebsd-emulation
mailing list