Changeset 9a8d91b in mainline for generic/src/proc/task.c
- Timestamp:
- 2006-04-12T16:40:35Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ace9ea
- Parents:
- b7f364e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/task.c
rb7f364e r9a8d91b 173 173 } 174 174 175 /** Find task structure corresponding to task ID. 176 * 177 * The tasks_lock must be already held by the caller of this function 178 * and interrupts must be disabled. 179 * 180 * @param id Task ID. 181 * 182 * @return Task structure address or NULL if there is no such task ID. 183 */ 184 task_t *task_find_by_id(task_id_t id) 185 { 186 btree_node_t *leaf; 187 188 return (task_t *) btree_search(&tasks_btree, (btree_key_t) id, &leaf); 189 } 190 175 191 /** Print task list */ 176 192 void task_print_list(void)
Note:
See TracChangeset
for help on using the changeset viewer.