Changes in uspace/srv/vfs/vfs_register.c [9d12059:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_register.c
r9d12059 rffa2c8ef 36 36 */ 37 37 38 #include <ipc/ipc.h>39 38 #include <ipc/services.h> 40 39 #include <async.h> … … 122 121 dprintf("Failed to deliver the VFS info into our AS, rc=%d.\n", 123 122 rc); 124 ipc_answer_0(rid, rc);123 async_answer_0(rid, rc); 125 124 return; 126 125 } … … 132 131 if (!fs_info) { 133 132 dprintf("Could not allocate memory for FS info.\n"); 134 ipc_answer_0(rid, ENOMEM);133 async_answer_0(rid, ENOMEM); 135 134 return; 136 135 } … … 144 143 if (!vfs_info_sane(&fs_info->vfs_info)) { 145 144 free(fs_info); 146 ipc_answer_0(rid, EINVAL);145 async_answer_0(rid, EINVAL); 147 146 return; 148 147 } … … 160 159 fibril_mutex_unlock(&fs_head_lock); 161 160 free(fs_info); 162 ipc_answer_0(rid, EEXISTS);161 async_answer_0(rid, EEXISTS); 163 162 return; 164 163 } … … 182 181 fibril_mutex_unlock(&fs_head_lock); 183 182 free(fs_info); 184 ipc_answer_0(callid, EINVAL);185 ipc_answer_0(rid, EINVAL);183 async_answer_0(callid, EINVAL); 184 async_answer_0(rid, EINVAL); 186 185 return; 187 186 } … … 189 188 phone = IPC_GET_ARG5(call); 190 189 async_session_create(&fs_info->session, phone, 0); 191 ipc_answer_0(callid, EOK);190 async_answer_0(callid, EOK); 192 191 193 192 dprintf("Callback connection to FS created.\n"); … … 203 202 fibril_mutex_unlock(&fs_head_lock); 204 203 async_session_destroy(&fs_info->session); 205 ipc_hangup(phone);206 free(fs_info); 207 ipc_answer_0(callid, EINVAL);208 ipc_answer_0(rid, EINVAL);204 async_hangup(phone); 205 free(fs_info); 206 async_answer_0(callid, EINVAL); 207 async_answer_0(rid, EINVAL); 209 208 return; 210 209 } … … 218 217 fibril_mutex_unlock(&fs_head_lock); 219 218 async_session_destroy(&fs_info->session); 220 ipc_hangup(phone);221 free(fs_info); 222 ipc_answer_0(callid, EINVAL);223 ipc_answer_0(rid, EINVAL);219 async_hangup(phone); 220 free(fs_info); 221 async_answer_0(callid, EINVAL); 222 async_answer_0(rid, EINVAL); 224 223 return; 225 224 } … … 239 238 */ 240 239 fs_info->fs_handle = (fs_handle_t) atomic_postinc(&fs_handle_next); 241 ipc_answer_1(rid, EOK, (sysarg_t) fs_info->fs_handle);240 async_answer_1(rid, EOK, (sysarg_t) fs_info->fs_handle); 242 241 243 242 fibril_condvar_broadcast(&fs_head_cv);
Note:
See TracChangeset
for help on using the changeset viewer.