Changes in kernel/generic/include/ipc/sysipc_ops.h [5b0cf63:466e95f7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ipc/sysipc_ops.h
r5b0cf63 r466e95f7 40 40 #define SYSIPC_OP(op, call, ...) \ 41 41 ({ \ 42 sysipc_ops_t *ops = sysipc_ops_get((call)->request_method); \ 43 assert(ops->op); \ 44 ops->op((call), ##__VA_ARGS__); \ 42 int rc = EOK; \ 43 \ 44 sysipc_ops_t *ops; \ 45 ops = sysipc_ops_get((call)->request_method); \ 46 if (ops->op) \ 47 rc = ops->op((call), ##__VA_ARGS__); \ 48 rc; \ 45 49 }) 46 50 … … 90 94 * Invoked on: all calls 91 95 */ 92 errno_t (*request_preprocess)(call_t *, phone_t *);96 int (* request_preprocess)(call_t *, phone_t *); 93 97 94 98 /** … … 101 105 * _ipc_answer_free_call() 102 106 * Invoked on: all forgotten calls 103 */ 104 errno_t (*request_forget)(call_t *);107 */ 108 int (* request_forget)(call_t *); 105 109 106 110 /** … … 111 115 * Races with: request_forget() 112 116 * Invoked on: all calls delivered to the callee 113 */ 114 int (* request_process)(call_t *, answerbox_t *);117 */ 118 int (* request_process)(call_t *, answerbox_t *); 115 119 116 120 /** … … 123 127 * Invoked on: all forgotten calls 124 128 */ 125 errno_t (*answer_cleanup)(call_t *, ipc_data_t *);129 int (* answer_cleanup)(call_t *, ipc_data_t *); 126 130 127 131 /** … … 134 138 * Invoked on: all answered calls 135 139 */ 136 errno_t (*answer_preprocess)(call_t *, ipc_data_t *);140 int (* answer_preprocess)(call_t *, ipc_data_t *); 137 141 138 142 /** … … 144 148 * Invoked on: all answered calls 145 149 */ 146 errno_t (*answer_process)(call_t *);150 int (* answer_process)(call_t *); 147 151 } sysipc_ops_t; 148 152 149 153 extern sysipc_ops_t *sysipc_ops_get(sysarg_t); 150 154 151 extern errno_t null_request_preprocess(call_t *, phone_t *);152 extern errno_t null_request_forget(call_t *);155 extern int null_request_preprocess(call_t *, phone_t *); 156 extern int null_request_forget(call_t *); 153 157 extern int null_request_process(call_t *, answerbox_t *); 154 extern errno_t null_answer_cleanup(call_t *, ipc_data_t *);155 extern errno_t null_answer_preprocess(call_t *, ipc_data_t *);156 extern errno_t null_answer_process(call_t *);158 extern int null_answer_cleanup(call_t *, ipc_data_t *); 159 extern int null_answer_preprocess(call_t *, ipc_data_t *); 160 extern int null_answer_process(call_t *); 157 161 158 162 #endif
Note:
See TracChangeset
for help on using the changeset viewer.