Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jul 2003 09:57:10 +0200
From:      Pawel Jakub Dawidek <nick@garage.freebsd.pl>
To:        Marc Ramirez <marc.ramirez@bluecirclesoft.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Communications kernel -> userland
Message-ID:  <20030719075710.GC437@garage.freebsd.pl>
In-Reply-To: <20030719074707.GB437@garage.freebsd.pl>
References:  <Pine.GSO.4.10.10307181512460.14292-100000@pcnet5.pcnet.com> <20030718153757.J61759@www.bluecirclesoft.com> <20030719074707.GB437@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030719075710.GC437>