From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 19 00:57:08 2003 Return-Path: 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 CE8B337B401; Sat, 19 Jul 2003 00:57:08 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id E728A43F75; Sat, 19 Jul 2003 00:57:07 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 5ECCA3ABB4D; Sat, 19 Jul 2003 09:57:10 +0200 (CEST) Date: Sat, 19 Jul 2003 09:57:10 +0200 From: Pawel Jakub Dawidek To: Marc Ramirez Message-ID: <20030719075710.GC437@garage.freebsd.pl> References: <20030718153757.J61759@www.bluecirclesoft.com> <20030719074707.GB437@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="f+W+jCU1fRNres8c" Content-Disposition: inline In-Reply-To: <20030719074707.GB437@garage.freebsd.pl> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: deischen@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Communications kernel -> userland X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jul 2003 07:57:09 -0000 --f+W+jCU1fRNres8c Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 19, 2003 at 09:47:08AM +0200, Pawel Jakub Dawidek wrote: +> On Fri, Jul 18, 2003 at 03:47:05PM -0400, Marc Ramirez wrote: +> +> I have a remote datastore that I want to present as a filesystem. Th= ere +> +> are two parts to this: fetching raw data over the network, and doing = some +> +> processing on the data. For purposes of maintainability, I'd like to= do +> +> as little of this as possible inside the kernel, so I've currently go= t a +> +> daemon to fetch and process the data, and then pipes it over a socket= to +> +> the kernel FS layer. +>=20 +> Your choices are: +> - device, +> - sysctl, +> - syscall. +>=20 +> You need to think about what you exactly need and which options will be +> the best. Creating new syscall isn't good idea, creating device is more +> complicated than sysctl, but of course it's up to you and your needs. Hmm, there is a chance that I've reverse direction:) But if you don't use kevent/kqueue you need to tell kernel that you want to read data. For example exporting logs from kernel to userland (to syslogd) is via device /dev/klog. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --f+W+jCU1fRNres8c Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPxj51j/PhmMH/Mf1AQF6SwP/Q8A5mfpp+MTp+OEQ0EFATVL2ff9Rp1x1 axBfZJA/MrjOx4PnSZPxEM6gYd0/vmjioWunPSrTN7e0KCVbnb9WMODd837jepBF wwmTcHeYbpggg5EPf9e8h/E4nDf1cHwg0EDeyWK/x6FbIUYQ/viuPBbg6D0Fswma k2B5K1S60+I= =SAzn -----END PGP SIGNATURE----- --f+W+jCU1fRNres8c--