Changeset ca687ad in mainline for generic/src/ipc/ipcrsc.c
- Timestamp:
- 2006-03-31T13:53:36Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0cb56f5d
- Parents:
- 296cc1b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/ipc/ipcrsc.c
r296cc1b rca687ad 130 130 /** Find call_t * in call table according to callid 131 131 * 132 * TODO: Some speedup (hash table?) 132 133 * @return NULL on not found, otherwise pointer to call structure 133 134 */ 134 135 call_t * get_call(__native callid) 135 136 { 136 /* TODO: Traverse list of dispatched calls and find one */ 137 /* TODO: locking of call, ripping it from dispatched calls etc. */ 138 return (call_t *) callid; 137 link_t *lst; 138 call_t *call, *result = NULL; 139 140 spinlock_lock(&TASK->answerbox.lock); 141 for (lst = TASK->answerbox.dispatched_calls.next; 142 lst != &TASK->answerbox.dispatched_calls; lst = lst->next) { 143 call = list_get_instance(lst, call_t, list); 144 if ((__native)call == callid) { 145 result = call; 146 break; 147 } 148 } 149 spinlock_unlock(&TASK->answerbox.lock); 150 return result; 139 151 } 140 152
Note:
See TracChangeset
for help on using the changeset viewer.