Rev 1588 | Rev 1597 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1588 | Rev 1589 | ||
---|---|---|---|
Line 236... | Line 236... | ||
236 | /** Find task structure corresponding to task ID. |
236 | /** Find task structure corresponding to task ID. |
237 | * |
237 | * |
238 | * The tasks_lock must be already held by the caller of this function |
238 | * The tasks_lock must be already held by the caller of this function |
239 | * and interrupts must be disabled. |
239 | * and interrupts must be disabled. |
240 | * |
240 | * |
- | 241 | * The task is guaranteed to exist after it was found in the tasks_btree as long as: |
|
- | 242 | * @li the tasks_lock is held, |
|
- | 243 | * @li the task's lock is held when task's lock is acquired before releasing tasks_lock or |
|
- | 244 | * @li the task's refcount is grater than 0 |
|
- | 245 | * |
|
241 | * @param id Task ID. |
246 | * @param id Task ID. |
242 | * |
247 | * |
243 | * @return Task structure address or NULL if there is no such task ID. |
248 | * @return Task structure address or NULL if there is no such task ID. |
244 | */ |
249 | */ |
245 | task_t *task_find_by_id(task_id_t id) |
250 | task_t *task_find_by_id(task_id_t id) |