Subversion Repositories HelenOS

Rev

Rev 1177 | Rev 1185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1177 Rev 1178
Line 170... Line 170...
170
    copy_to_uspace(uspace_task_id, &TASK->taskid, sizeof(TASK->taskid));
170
    copy_to_uspace(uspace_task_id, &TASK->taskid, sizeof(TASK->taskid));
171
 
171
 
172
    return 0;
172
    return 0;
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
/** Print task list */
191
/** Print task list */
176
void task_print_list(void)
192
void task_print_list(void)
177
{
193
{
178
    link_t *cur;
194
    link_t *cur;
179
    ipl_t ipl;
195
    ipl_t ipl;