Changeset 9a8d91b in mainline for generic/src/proc/task.c


Ignore:
Timestamp:
2006-04-12T16:40:35Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1ace9ea
Parents:
b7f364e
Message:

Add task_find_by_id().
Add kernel support for SYS_MAP_PHYSMEM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/task.c

    rb7f364e r9a8d91b  
    173173}
    174174
     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 */
     184task_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
    175191/** Print task list */
    176192void task_print_list(void)
Note: See TracChangeset for help on using the changeset viewer.