From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 4 13:15:07 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 633F116A505 for ; Fri, 4 Jan 2008 13:15:07 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.242]) by mx1.freebsd.org (Postfix) with ESMTP id 2030513C474 for ; Fri, 4 Jan 2008 13:15:06 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by hs-out-2122.google.com with SMTP id j58so5201865hsj.11 for ; Fri, 04 Jan 2008 05:15:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=/sfYTftP6rfeuO5WbOMH+Ce0jCoU2qwmId1HwR+fWHU=; b=IZFGjN9k3kzSKS0wcOxZPY+CSDDIyk0AFdX/hdJMc1wLW5Q+oLWRLqlrlLIdaVCIUimiDaHiTxDmz35j3JoWJdVOG9QOkSnA9xFiiVLidPI+TQ5G1QmtRQpj/a8y6k//xfEhUDG42GGRyK7hRIekkcirc8oe0Xg+7CllB8Ly1dA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=vLU0f6GRFl5RZbUY4jlcnjmaSn9X+i+fmcmKaWFjTasP9mf8a8u6EJKQeW73SGuDqyGTvT1IKGmBD3W/NVxWki4AvI02KriNfrWfJXKDMjKj1IOK96lAYxYpI9UqrNAOSDpSFx7sPvYXYb9ibsbuY5Ygp4/OJH0erQYe0q1Eo8w= Received: by 10.150.158.8 with SMTP id g8mr534200ybe.94.1199450870589; Fri, 04 Jan 2008 04:47:50 -0800 (PST) Received: by 10.150.178.13 with HTTP; Fri, 4 Jan 2008 04:47:50 -0800 (PST) Message-ID: <1bd550a00801040447p3d0d43f6n87c79c51bb3cb508@mail.gmail.com> Date: Fri, 4 Jan 2008 13:47:50 +0100 From: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" To: freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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 13:15:07 -0000 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.