Changeset 80bcaed in mainline for kernel/generic/include/proc/task.h
- Timestamp:
- 2007-02-03T13:22:24Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f619ec11
- Parents:
- fa8e7d2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/task.h
rfa8e7d2 r80bcaed 59 59 /** Task lock. 60 60 * 61 * Must be acquired before threads_lock and thread lock of any of its threads. 61 * Must be acquired before threads_lock and thread lock of any of its 62 * threads. 62 63 */ 63 64 SPINLOCK_DECLARE(lock); 64 65 65 66 char *name; 66 struct thread *main_thread; /**< Pointer to the main thread. */ 67 link_t th_head; /**< List of threads contained in this task. */ 68 as_t *as; /**< Address space. */ 69 task_id_t taskid; /**< Unique identity of task */ 70 context_id_t context; /**< Task security context */ 67 /** Pointer to the main thread. */ 68 struct thread *main_thread; 69 /** List of threads contained in this task. */ 70 link_t th_head; 71 /** Address space. */ 72 as_t *as; 73 /** Unique identity of task. */ 74 task_id_t taskid; 75 /** Task security context. */ 76 context_id_t context; 71 77 72 78 /** If this is true, new threads can become part of the task. */ 73 79 bool accept_new_threads; 80 /** Number of references (i.e. threads). */ 81 count_t refcount; 74 82 75 count_t refcount; /**< Number of references (i.e. threads). */ 76 77 cap_t capabilities; /**< Task capabilities. */ 83 /** Task capabilities. */ 84 cap_t capabilities; 78 85 79 86 /* IPC stuff */ 80 87 answerbox_t answerbox; /**< Communication endpoint */ 81 88 phone_t phones[IPC_MAX_PHONES]; 82 atomic_t active_calls; /**< Active asynchronous messages. 83 * It is used for limiting uspace to 84 * certain extent. */ 89 /** 90 * Active asynchronous messages. It is used for limiting uspace to 91 * certain extent. 92 */ 93 atomic_t active_calls; 85 94 86 task_arch_t arch; /**< Architecture specific task data. */ 95 /** Architecture specific task data. */ 96 task_arch_t arch; 87 97 88 98 /** … … 91 101 */ 92 102 mutex_t futexes_lock; 93 btree_t futexes; /**< B+tree of futexes referenced by this task. */ 103 /** B+tree of futexes referenced by this task. */ 104 btree_t futexes; 94 105 95 uint64_t cycles; /**< Accumulated accounting. */ 106 /** Accumulated accounting. */ 107 uint64_t cycles; 96 108 } task_t; 97 109
Note:
See TracChangeset
for help on using the changeset viewer.