diff options
-rw-r--r-- | libfshelp/fshelp.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libfshelp/fshelp.h b/libfshelp/fshelp.h index 9df05abe..e87fde35 100644 --- a/libfshelp/fshelp.h +++ b/libfshelp/fshelp.h @@ -179,6 +179,21 @@ error_t fshelp_acquire_lock (struct lock_box *box, int *user, /* Initialize lock_box BOX. (The user int passed to fshelp_acquire_lock should be initialized with LOCK_UN.). */ void fshelp_lock_init (struct lock_box *box); + + + +/* Return an identity port for the node numbered FILENO, suitable for + returning from io_identity; exactly one send right must be created + from the returned value. FILENO should be the same value returned + as the `fileno' out-parameter in io_identity, and in the enclosing + directory (except for mount points), and in the st_ino stat field. + BUCKET should be a ports port bucket; fshelp requires the caller to + make sure port operations (for no-senders notifications) are used. + */ +mach_port_t fshelp_get_identity (struct port_bucket *bucket, + ino_t fileno); + + /* Try to hand off responsibility from a translator to the server located on the node SERVER_NAME. REQUESTOR is the translator's bootstrap port, and |