22 |
#include <rtmk/vm-types.h> |
#include <rtmk/vm-types.h> |
23 |
#include <rtmk/ipc-types.h> |
#include <rtmk/ipc-types.h> |
24 |
#include <rtmk/ipc-return.h> |
#include <rtmk/ipc-return.h> |
25 |
|
#include <rtmk/thread-status.h> |
26 |
|
|
27 |
#include "tm.h" |
#include "tm.h" |
28 |
#include "task.h" |
#include "task.h" |
157 |
|
|
158 |
extern void thread_interrupt (struct thread *thread); |
extern void thread_interrupt (struct thread *thread); |
159 |
|
|
160 |
|
/* The following two function must be implemented by MD code. */ |
161 |
|
|
162 |
|
/* Get status information about THREAD. What type of status is specified |
163 |
|
with FLAVOR. Information is returned in STATUS. */ |
164 |
|
|
165 |
|
extern kern_return_t thread_get_status (struct thread *thread, |
166 |
|
thread_status_flavor_t flavor, |
167 |
|
thread_status_t status, int *count); |
168 |
|
|
169 |
|
/* Set status information for THREAD. What type of status is specified |
170 |
|
with FLAVOR. Information is located in STATUS. */ |
171 |
|
|
172 |
|
extern kern_return_t thread_set_status (struct thread *thread, |
173 |
|
thread_status_flavor_t flavor, |
174 |
|
thread_status_t status, int count); |
175 |
|
|
176 |
#endif /* thread.h */ |
#endif /* thread.h */ |