Subject: Re: Advice Needed on a NetBSD based project
To: None <hsaliak@kasba.ath.cx>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 08/08/2004 08:46:36
--Apple-Mail-2--143836829
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Aug 8, 2004, at 3:18 AM, hsaliak@kasba.ath.cx wrote:

> My main problem problem here is that  I dont have much idea on how to 
> go about
> designing a efficient way to communicate between such an indexing 
> daemon and my
> fs layer.
> Is there an efficient mechanism already present to achieve this?  Or 
> anything I can base it on, without starting from scratch?

There's not really a generic mechanism for this.  You want to develop a 
message passing interface ... you could use a socket or a character 
special device.  The latter has some prior art: Take a look at the CODA 
file system in the tree, which uses a character device to communicate 
with the userland portion of the file system.  Other FS projects I have 
worked on have also used the character device approach.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>


--Apple-Mail-2--143836829
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFBFkrcOpVKkaBm8XkRAqJiAJ9GFf39hAn3L8Z44uG8cSMm+3fXAwCfX8q9
M8Q5jvfCOgzKHF5DDLq5Ijk=
=6hUH
-----END PGP SIGNATURE-----

--Apple-Mail-2--143836829--