Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_register.c

    ra35b458 r77f0a1d  
    108108/** VFS_REGISTER protocol function.
    109109 *
    110  * @param rid     Hash of the call with the request.
    111  * @param request Call structure with the request.
    112  *
    113  */
    114 void vfs_register(ipc_callid_t rid, ipc_call_t *request)
     110 * @param req_handle  Call handle of the request.
     111 * @param request     Call structure with the request.
     112 *
     113 */
     114void vfs_register(cap_call_handle_t req_handle, ipc_call_t *request)
    115115{
    116116        dprintf("Processing VFS_REGISTER request received from %zx.\n",
     
    124124                dprintf("Failed to deliver the VFS info into our AS, rc=%d.\n",
    125125                    rc);
    126                 async_answer_0(rid, rc);
     126                async_answer_0(req_handle, rc);
    127127                return;
    128128        }
     
    134134        if (!fs_info) {
    135135                dprintf("Could not allocate memory for FS info.\n");
    136                 async_answer_0(rid, ENOMEM);
     136                async_answer_0(req_handle, ENOMEM);
    137137                return;
    138138        }
     
    146146        if (!vfs_info_sane(&fs_info->vfs_info)) {
    147147                free(fs_info);
    148                 async_answer_0(rid, EINVAL);
     148                async_answer_0(req_handle, EINVAL);
    149149                return;
    150150        }
     
    163163                fibril_mutex_unlock(&fs_list_lock);
    164164                free(fs_info);
    165                 async_answer_0(rid, EEXIST);
     165                async_answer_0(req_handle, EEXIST);
    166166                return;
    167167        }
     
    184184                fibril_mutex_unlock(&fs_list_lock);
    185185                free(fs_info);
    186                 async_answer_0(rid, EINVAL);
     186                async_answer_0(req_handle, EINVAL);
    187187                return;
    188188        }
     
    195195
    196196        size_t size;
    197         ipc_callid_t callid;
    198         if (!async_share_in_receive(&callid, &size)) {
     197        cap_call_handle_t chandle;
     198        if (!async_share_in_receive(&chandle, &size)) {
    199199                dprintf("Unexpected call\n");
    200200                list_remove(&fs_info->fs_link);
     
    202202                async_hangup(fs_info->sess);
    203203                free(fs_info);
    204                 async_answer_0(callid, EINVAL);
    205                 async_answer_0(rid, EINVAL);
     204                async_answer_0(chandle, EINVAL);
     205                async_answer_0(req_handle, EINVAL);
    206206                return;
    207207        }
     
    216216                async_hangup(fs_info->sess);
    217217                free(fs_info);
    218                 async_answer_0(callid, EINVAL);
    219                 async_answer_0(rid, EINVAL);
     218                async_answer_0(chandle, EINVAL);
     219                async_answer_0(req_handle, EINVAL);
    220220                return;
    221221        }
     
    224224         * Commit to read-only sharing the PLB with the client.
    225225         */
    226         (void) async_share_in_finalize(callid, plb,
     226        (void) async_share_in_finalize(chandle, plb,
    227227            AS_AREA_READ | AS_AREA_CACHEABLE);
    228228
     
    235235         */
    236236        fs_info->fs_handle = (fs_handle_t) atomic_postinc(&fs_handle_next);
    237         async_answer_1(rid, EOK, (sysarg_t) fs_info->fs_handle);
     237        async_answer_1(req_handle, EOK, (sysarg_t) fs_info->fs_handle);
    238238
    239239        fibril_condvar_broadcast(&fs_list_cv);
Note: See TracChangeset for help on using the changeset viewer.