Date: Tue, 6 Aug 2002 11:28:41 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Ed Yu <edlyu@yahoo.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: anything similar to linux /proc stuff? Message-ID: <20020806112841.A7967@Odin.AC.HMC.Edu> In-Reply-To: <20020806182037.63580.qmail@web20703.mail.yahoo.com>; from edlyu@yahoo.com on Tue, Aug 06, 2002 at 11:20:37AM -0700 References: <20020806182037.63580.qmail@web20703.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020806112841.A7967>