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