[Top][All Lists]

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

proposing libnetfs interface change

From: Moritz Schulte
Subject: proposing libnetfs interface change
Date: Sat, 23 Nov 2002 02:41:58 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

Hi there,

  there are (or will be) at least two Hurd servers, which hand out
"forein" ports to the user - ports, not managed by themselves.

  * socketio gives out ports managed by the socket server,
  * unionfs gives out ports to the underlying filesystems.

  Instead of letting these servers implement their own
netfs_S_dir_lookup, we could extend netfs_attempt_lookup.  What is
basically needed is something like:

error_t netfs_attempt_lookup (struct iouser *user, struct node *dir,
                              char *name, struct node **np,
                              mach_port_t *port,
                              mach_msg_type_name_t *port_type);

  This would allow servers to simply return:

  * forein ports


  * netfs nodes in the usual way.

  Some code in netfs_S_dir_lookup dealing with checks on that `struct
node **np' would have to be restricted to the case, in which
netfs_attempt_lookup returned really a node instead of a port.


moritz@duesseldorf.ccc.de - http://duesseldorf.ccc.de/~moritz/
GPG fingerprint = 3A14 3923 15BE FD57 FC06  B501 0841 2D7B 6F98 4199

reply via email to

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