Changes in kernel/generic/include/proc/task.h [278b4a30:41df2827] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/task.h
r278b4a30 r41df2827 1 1 /* 2 * Copyright (c) 20 10Jakub Jermar2 * Copyright (c) 2001-2004 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 56 56 #include <ipc/kbox.h> 57 57 #include <mm/as.h> 58 #include <sysinfo/abi.h> 58 59 #define TASK_NAME_BUFLEN 20 59 60 60 61 struct thread; … … 80 81 task_id_t taskid; 81 82 /** Task security context. */ 82 context_id_t context; 83 context_id_t context; 83 84 84 85 /** Number of references (i.e. threads). */ … … 88 89 89 90 /** Task capabilities. */ 90 cap_t capabilities; 91 cap_t capabilities; 91 92 92 93 /* IPC stuff */ 93 94 answerbox_t answerbox; /**< Communication endpoint */ 94 95 phone_t phones[IPC_MAX_PHONES]; 95 stats_ipc_t ipc_info; /**< IPC statistics */96 96 /** 97 97 * Active asynchronous messages. It is used for limiting uspace to … … 119 119 mutex_t futexes_lock; 120 120 /** B+tree of futexes referenced by this task. */ 121 btree_t futexes; 121 btree_t futexes; 122 122 123 123 /** Accumulated accounting. */ 124 uint64_t ucycles; 125 uint64_t kcycles; 124 uint64_t cycles; 126 125 } task_t; 127 126 … … 131 130 extern void task_init(void); 132 131 extern void task_done(void); 133 extern task_t *task_create(as_t *, const char *); 134 extern void task_destroy(task_t *); 135 extern void task_hold(task_t *); 136 extern void task_release(task_t *); 137 extern task_t *task_find_by_id(task_id_t); 138 extern int task_kill(task_id_t); 139 extern void task_get_accounting(task_t *, uint64_t *, uint64_t *); 132 extern task_t *task_create(as_t *as, char *name); 133 extern void task_destroy(task_t *t); 134 extern task_t *task_find_by_id(task_id_t id); 135 extern int task_kill(task_id_t id); 136 extern uint64_t task_get_accounting(task_t *t); 140 137 extern void task_print_list(void); 141 138 142 extern void cap_set(task_t * , cap_t);143 extern cap_t cap_get(task_t * );139 extern void cap_set(task_t *t, cap_t caps); 140 extern cap_t cap_get(task_t *t); 144 141 145 142 #ifndef task_create_arch 146 extern void task_create_arch(task_t * );143 extern void task_create_arch(task_t *t); 147 144 #endif 148 145 149 146 #ifndef task_destroy_arch 150 extern void task_destroy_arch(task_t * );147 extern void task_destroy_arch(task_t *t); 151 148 #endif 152 149 153 extern unative_t sys_task_get_id(task_id_t * );154 extern unative_t sys_task_set_name(const char * , size_t);150 extern unative_t sys_task_get_id(task_id_t *uspace_task_id); 151 extern unative_t sys_task_set_name(const char *uspace_name, size_t name_len); 155 152 156 153 #endif
Note:
See TracChangeset
for help on using the changeset viewer.