Changes in kernel/generic/src/ipc/sysipc.c [2541646:466e95f7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/sysipc.c
r2541646 r466e95f7 161 161 { 162 162 int rc = EOK; 163 sysipc_ops_t *ops;164 163 165 164 spinlock_lock(&answer->forget_lock); … … 170 169 spinlock_unlock(&answer->forget_lock); 171 170 172 ops = sysipc_ops_get(answer->request_method); 173 if (ops->answer_cleanup) 174 ops->answer_cleanup(answer, olddata); 175 171 SYSIPC_OP(answer_cleanup, answer, olddata); 176 172 return rc; 177 173 } else { … … 213 209 return rc; 214 210 215 ops = sysipc_ops_get(answer->request_method); 216 if (ops->answer_preprocess) 217 rc = ops->answer_preprocess(answer, olddata); 218 219 return rc; 211 return SYSIPC_OP(answer_preprocess, answer, olddata); 220 212 } 221 213 … … 230 222 static int request_preprocess(call_t *call, phone_t *phone) 231 223 { 232 int rc = EOK;233 234 224 call->request_method = IPC_GET_IMETHOD(call->data); 235 236 sysipc_ops_t *ops = sysipc_ops_get(call->request_method); 237 if (ops->request_preprocess) 238 rc = ops->request_preprocess(call, phone); 239 240 return rc; 225 return SYSIPC_OP(request_preprocess, call, phone); 241 226 } 242 227 … … 256 241 IPC_SET_RETVAL(call->data, EFORWARD); 257 242 258 sysipc_ops_t *ops = sysipc_ops_get(call->request_method); 259 if (ops->answer_process) 260 (void) ops->answer_process(call); 243 SYSIPC_OP(answer_process, call); 261 244 } 262 245 … … 273 256 static int process_request(answerbox_t *box, call_t *call) 274 257 { 275 int rc = EOK; 276 277 sysipc_ops_t *ops = sysipc_ops_get(call->request_method); 278 if (ops->request_process) 279 rc = ops->request_process(call, box); 280 281 return rc; 258 return SYSIPC_OP(request_process, call, box); 282 259 } 283 260
Note:
See TracChangeset
for help on using the changeset viewer.