help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: named ports <-> trivfs translator!


From: Johan Rydberg
Subject: Re: named ports <-> trivfs translator!
Date: Mon, 04 Jun 2001 02:44:22 +0200

Marcus Brinkmann wrote:

> The canonical way to do it on the Hurd is to attach the server to some node
> in the filesystem, that means, you write a translator which you attach with
> settrans, or you write a program that installs itself as a translator
> somewhere. libtrivfs helps a lot for that.  (For the latter, see how pfinet
> installs the tunnel "device" in pfinet/tunnel.c (setup_tunnel_device).

I went with the latter and it seems to work.  Thanks.  Next question:

Take a look at the following scenario:

  1. allocate object
  2. client does something with object
  3. deallocate object

I have created a port class with a custom clean routine.  I want the clean
routine to be called if the object are NOT deallocated in step 3 (for example, 
the client dies).  Is this possible - or do I have hold an internal state for
every port?

regards,
johan


-- 
Johan Rydberg, Net Insight AB, Sweden, +46-8-685 04 00

$ ON F$ERROR("LANGUAGE","ENGLISH","IN_MESSAGE").GT.F$ERROR("NORMAL") -
             THEN EXCUSE/OBJECT=ME



reply via email to

[Prev in Thread] Current Thread [Next in Thread]