Changes in uspace/srv/vfs/vfs_register.c [a35b458:77f0a1d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_register.c
ra35b458 r77f0a1d 108 108 /** VFS_REGISTER protocol function. 109 109 * 110 * @param r id Hash of the call withthe 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 */ 114 void vfs_register(cap_call_handle_t req_handle, ipc_call_t *request) 115 115 { 116 116 dprintf("Processing VFS_REGISTER request received from %zx.\n", … … 124 124 dprintf("Failed to deliver the VFS info into our AS, rc=%d.\n", 125 125 rc); 126 async_answer_0(r id, rc);126 async_answer_0(req_handle, rc); 127 127 return; 128 128 } … … 134 134 if (!fs_info) { 135 135 dprintf("Could not allocate memory for FS info.\n"); 136 async_answer_0(r id, ENOMEM);136 async_answer_0(req_handle, ENOMEM); 137 137 return; 138 138 } … … 146 146 if (!vfs_info_sane(&fs_info->vfs_info)) { 147 147 free(fs_info); 148 async_answer_0(r id, EINVAL);148 async_answer_0(req_handle, EINVAL); 149 149 return; 150 150 } … … 163 163 fibril_mutex_unlock(&fs_list_lock); 164 164 free(fs_info); 165 async_answer_0(r id, EEXIST);165 async_answer_0(req_handle, EEXIST); 166 166 return; 167 167 } … … 184 184 fibril_mutex_unlock(&fs_list_lock); 185 185 free(fs_info); 186 async_answer_0(r id, EINVAL);186 async_answer_0(req_handle, EINVAL); 187 187 return; 188 188 } … … 195 195 196 196 size_t size; 197 ipc_callid_t callid;198 if (!async_share_in_receive(&c allid, &size)) {197 cap_call_handle_t chandle; 198 if (!async_share_in_receive(&chandle, &size)) { 199 199 dprintf("Unexpected call\n"); 200 200 list_remove(&fs_info->fs_link); … … 202 202 async_hangup(fs_info->sess); 203 203 free(fs_info); 204 async_answer_0(c allid, EINVAL);205 async_answer_0(r id, EINVAL);204 async_answer_0(chandle, EINVAL); 205 async_answer_0(req_handle, EINVAL); 206 206 return; 207 207 } … … 216 216 async_hangup(fs_info->sess); 217 217 free(fs_info); 218 async_answer_0(c allid, EINVAL);219 async_answer_0(r id, EINVAL);218 async_answer_0(chandle, EINVAL); 219 async_answer_0(req_handle, EINVAL); 220 220 return; 221 221 } … … 224 224 * Commit to read-only sharing the PLB with the client. 225 225 */ 226 (void) async_share_in_finalize(c allid, plb,226 (void) async_share_in_finalize(chandle, plb, 227 227 AS_AREA_READ | AS_AREA_CACHEABLE); 228 228 … … 235 235 */ 236 236 fs_info->fs_handle = (fs_handle_t) atomic_postinc(&fs_handle_next); 237 async_answer_1(r id, EOK, (sysarg_t) fs_info->fs_handle);237 async_answer_1(req_handle, EOK, (sysarg_t) fs_info->fs_handle); 238 238 239 239 fibril_condvar_broadcast(&fs_list_cv);
Note:
See TracChangeset
for help on using the changeset viewer.