From owner-freebsd-hackers Tue Aug 6 11:28:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 823A837B400 for ; Tue, 6 Aug 2002 11:28:44 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id E68E543E70 for ; Tue, 6 Aug 2002 11:28:43 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id g76ISgJU009211; Tue, 6 Aug 2002 11:28:42 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id g76ISfPJ009210; Tue, 6 Aug 2002 11:28:41 -0700 Date: Tue, 6 Aug 2002 11:28:41 -0700 From: Brooks Davis To: Ed Yu Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: anything similar to linux /proc stuff? Message-ID: <20020806112841.A7967@Odin.AC.HMC.Edu> References: <20020806182037.63580.qmail@web20703.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020806182037.63580.qmail@web20703.mail.yahoo.com>; from edlyu@yahoo.com on Tue, Aug 06, 2002 at 11:20:37AM -0700 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 06, 2002 at 11:20:37AM -0700, Ed Yu wrote: > Hi, I'm doing a port of a Linux module I wrote so that > I can use it on my FreeBSD system. However, after some > digging, I found the FreeBSD /proc is vastly different > from Linux. Despite the overuse of /proc in Linux, it > is useful still to have something like that in my > module. Basically, I need some kind of pseudo > filesystem to store pseudo files that can report > informations of the module I write. I need to be able > to echo into the files, and cat it out (yes like fifo) > and read information such as the id of the running > process that uses the module, etc. > Is there facility like that in FreeBSD? Yes and no. If you real want a FS interface you're proably out of luck. However, you might find that sysctl does what you want. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --M9NhX3UHpAaciwkO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9UBVZXY6L6fI4GtQRAokoAJ985jZhSb8kAh4/e2QA0+dygDNU7ACcD9QL 1BX5oBhv9U3jAEdg/ajgx4c= =juoH -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message