Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/sysipc.c

    r2541646 r466e95f7  
    161161{
    162162        int rc = EOK;
    163         sysipc_ops_t *ops;
    164163
    165164        spinlock_lock(&answer->forget_lock);
     
    170169                spinlock_unlock(&answer->forget_lock);
    171170
    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);
    176172                return rc;
    177173        } else {
     
    213209                return rc;
    214210
    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);
    220212}
    221213
     
    230222static int request_preprocess(call_t *call, phone_t *phone)
    231223{
    232         int rc = EOK;
    233 
    234224        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);
    241226}
    242227
     
    256241                IPC_SET_RETVAL(call->data, EFORWARD);
    257242       
    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);
    261244}
    262245
     
    273256static int process_request(answerbox_t *box, call_t *call)
    274257{
    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);
    282259}
    283260
Note: See TracChangeset for help on using the changeset viewer.