Changes in kernel/generic/include/proc/task.h [41df2827:278b4a30] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/task.h
r41df2827 r278b4a30 1 1 /* 2 * Copyright (c) 20 01-2004Jakub Jermar2 * Copyright (c) 2010 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 56 56 #include <ipc/kbox.h> 57 57 #include <mm/as.h> 58 59 #define TASK_NAME_BUFLEN 20 58 #include <sysinfo/abi.h> 60 59 61 60 struct thread; … … 81 80 task_id_t taskid; 82 81 /** Task security context. */ 83 context_id_t context; 82 context_id_t context; 84 83 85 84 /** Number of references (i.e. threads). */ … … 89 88 90 89 /** Task capabilities. */ 91 cap_t capabilities; 90 cap_t capabilities; 92 91 93 92 /* IPC stuff */ 94 93 answerbox_t answerbox; /**< Communication endpoint */ 95 94 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 cycles; 124 uint64_t ucycles; 125 uint64_t kcycles; 125 126 } task_t; 126 127 … … 130 131 extern void task_init(void); 131 132 extern void task_done(void); 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); 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 *); 137 140 extern void task_print_list(void); 138 141 139 extern void cap_set(task_t * t, cap_t caps);140 extern cap_t cap_get(task_t * t);142 extern void cap_set(task_t *, cap_t); 143 extern cap_t cap_get(task_t *); 141 144 142 145 #ifndef task_create_arch 143 extern void task_create_arch(task_t * t);146 extern void task_create_arch(task_t *); 144 147 #endif 145 148 146 149 #ifndef task_destroy_arch 147 extern void task_destroy_arch(task_t * t);150 extern void task_destroy_arch(task_t *); 148 151 #endif 149 152 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);153 extern unative_t sys_task_get_id(task_id_t *); 154 extern unative_t sys_task_set_name(const char *, size_t); 152 155 153 156 #endif
Note:
See TracChangeset
for help on using the changeset viewer.