Index: trunk/kernel/kern/rpc.h
===================================================================
--- trunk/kernel/kern/rpc.h	(revision 611)
+++ trunk/kernel/kern/rpc.h	(revision 612)
@@ -40,4 +40,5 @@
 struct pthread_attr_s;
 struct remote_sem_s;
+struct user_dir_s;
 struct fragment_s;
 struct vfs_inode_s;
@@ -63,6 +64,6 @@
     RPC_UNDEFINED_2               = 2,      
     RPC_PROCESS_MAKE_FORK         = 3,
-    RPC_UNDEFINED_4               = 4,
-    RPC_UNDEFINED_5               = 5,
+    RPC_USER_DIR_CREATE           = 4,
+    RPC_USER_DIR_DESTROY          = 5,
     RPC_THREAD_USER_CREATE        = 6,
     RPC_THREAD_KERNEL_CREATE      = 7,
@@ -76,5 +77,5 @@
     RPC_VFS_FILE_CREATE           = 14,
     RPC_VFS_FILE_DESTROY          = 15,
-    RPC_VFS_FS_CHILD_INIT         = 16,
+    RPC_VFS_FS_GET_DENTRY         = 16,
     RPC_VFS_FS_ADD_DENTRY         = 17,
     RPC_VFS_FS_REMOVE_DENTRY      = 18,
@@ -226,10 +227,30 @@
 
 /***********************************************************************************
- * [4] undefined slot
- **********************************************************************************/
-
-/***********************************************************************************
- * [5] undefined slot
- **********************************************************************************/
+ * [4] The RPC_USER_DIR_CREATE allows a client thread to create an user_dir_t
+ * structure and the associated array of dirents in a remote cluster containing
+ * the target directory inode. It is called by the sys_opendir() function.
+ ***********************************************************************************
+ * @ cxy        : server cluster identifier.
+ * @ inode      : [in]   local pointer on inode in server cluster.
+ * @ dir        : [out]  local pointer on created user_dir structure.
+ **********************************************************************************/
+void rpc_user_dir_create_client( cxy_t                 cxy,
+                                 struct vfs_inode_s  * inode,
+                                 struct user_dir_s  ** dir );
+
+void rpc_user_dir_create_server( xptr_t xp );
+
+/***********************************************************************************
+ * [5] The RPC_USER_DIR_DESTROY allows a client thread to delete an user_dir_t
+ * structure and the associated array of dirents in a remote cluster containing
+ * the target directory inode. It is called by the sys_closedir() function.
+ ***********************************************************************************
+ * @ cxy        : server cluster identifier.
+ * @ dir        : [in]  local pointer on created user_dir structure.
+ **********************************************************************************/
+void rpc_user_dir_destroy_client( cxy_t               cxy,
+                                  struct user_dir_s * dir );
+
+void rpc_user_dir_destroy_server( xptr_t xp );
 
 /***********************************************************************************
@@ -402,8 +423,8 @@
 
 /*********************************************************************************** 
- * [16] The RPC_VFS_FS_CHILD_INIT calls the vfs_fs_child_init_load_inode()
+ * [16] The RPC_VFS_FS_GET_DENTRY calls the vfs_fs_get_dentry()
  * function in a remote cluster containing a parent inode directory to scan the 
  * associated mapper, find a directory entry identified by its name, and update
- * both the child inode and the dentry.
+ * both the - existing - child inode and dentry.
  ***********************************************************************************
  * @ cxy            : server cluster identifier
@@ -413,5 +434,5 @@
  * @ error          : [out] error status (0 if success).
  **********************************************************************************/
-void rpc_vfs_fs_child_init_client( cxy_t                cxy,
+void rpc_vfs_fs_get_dentry_client( cxy_t                cxy,
                                    struct vfs_inode_s * parent_inode,
                                    char               * name,
@@ -419,5 +440,5 @@
                                    error_t            * error );
 
-void rpc_vfs_fs_child_init_server( xptr_t xp );
+void rpc_vfs_fs_get_dentry_server( xptr_t xp );
 
 /*********************************************************************************** 
