From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 4 16:51:03 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 792DE16A417 for ; Fri, 4 Jan 2008 16:51:03 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 3331913C4D9 for ; Fri, 4 Jan 2008 16:51:02 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 08B5B66B7BA; Fri, 4 Jan 2008 17:51:00 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uhlx5W7mOO6E; Fri, 4 Jan 2008 17:50:49 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id DC66366B7B3; Fri, 4 Jan 2008 17:50:42 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id m04GogI2067833; Fri, 4 Jan 2008 17:50:42 +0100 (CET) (envelope-from rdivacky) Date: Fri, 4 Jan 2008 17:50:42 +0100 From: Roman Divacky To: Fernando Apestegu?a Message-ID: <20080104165042.GA67753@freebsd.org> References: <1bd550a00801040447p3d0d43f6n87c79c51bb3cb508@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1bd550a00801040447p3d0d43f6n87c79c51bb3cb508@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org Subject: Re: linprocfs question. Porting app from linux to freebsd X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 16:51:03 -0000 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