Changes in kernel/generic/src/ipc/ipcrsc.c [9d58539:c33f39f] in mainline
- File:
-
- 1 edited
-
kernel/generic/src/ipc/ipcrsc.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ipcrsc.c
r9d58539 rc33f39f 132 132 #include <ipc/ipcrsc.h> 133 133 #include <debug.h> 134 #include <abi/errno.h> 134 135 135 136 /** Find call_t * in call table according to callid. … … 151 152 152 153 list_foreach(TASK->answerbox.dispatched_calls, lst) { 153 call_t *call = list_get_instance(lst, call_t, link);154 call_t *call = list_get_instance(lst, call_t, ab_link); 154 155 if ((sysarg_t) call == callid) { 155 156 result = call; … … 160 161 irq_spinlock_unlock(&TASK->answerbox.lock, true); 161 162 return result; 163 } 164 165 /** Get phone from the current task by ID. 166 * 167 * @param phoneid Phone ID. 168 * @param phone Place to store pointer to phone. 169 * 170 * @return EOK on success, EINVAL if ID is invalid. 171 * 172 */ 173 int phone_get(sysarg_t phoneid, phone_t **phone) 174 { 175 if (phoneid >= IPC_MAX_PHONES) 176 return EINVAL; 177 178 *phone = &TASK->phones[phoneid]; 179 return EOK; 162 180 } 163 181 … … 223 241 * @param phoneid Phone handle to be connected. 224 242 * @param box Answerbox to which to connect the phone handle. 243 * @return True if the phone was connected, false otherwise. 225 244 * 226 245 * The procedure _enforces_ that the user first marks the phone … … 229 248 * 230 249 */ 231 voidphone_connect(int phoneid, answerbox_t *box)250 bool phone_connect(int phoneid, answerbox_t *box) 232 251 { 233 252 phone_t *phone = &TASK->phones[phoneid]; 234 253 235 254 ASSERT(phone->state == IPC_PHONE_CONNECTING); 236 ipc_phone_connect(phone, box);255 return ipc_phone_connect(phone, box); 237 256 } 238 257
Note:
See TracChangeset
for help on using the changeset viewer.
