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> |
#include <rtmk/thread-state.h> |
26 |
|
|
27 |
#include "tm.h" |
#include "tm.h" |
28 |
#include "task.h" |
#include "task.h" |
403 |
|
|
404 |
/* The following four function must be implemented by MD code. */ |
/* The following four function must be implemented by MD code. */ |
405 |
|
|
406 |
/* Get status information about THREAD. What type of status is specified |
/* Get state information about THREAD. What type of state is specified |
407 |
with FLAVOR. Information is returned in STATUS. */ |
with FLAVOR. Information is returned in STATEBUF. */ |
408 |
|
extern kern_return_t thread_state_get (struct thread *thread, int flavor, |
409 |
extern kern_return_t thread_get_status (struct thread *thread, |
char *statebuf, int *count); |
410 |
thread_status_flavor_t flavor, |
|
411 |
thread_status_t status, int *count); |
/* Set state information for THREAD. What type of state is specified |
412 |
|
with FLAVOR. Information is located in STATEBUF */ |
413 |
/* Set status information for THREAD. What type of status is specified |
extern kern_return_t thread_state_set (struct thread *thread, int flavor, |
414 |
with FLAVOR. Information is located in STATUS. */ |
char *statebuf, int count); |
|
|
|
|
extern kern_return_t thread_set_status (struct thread *thread, |
|
|
thread_status_flavor_t flavor, |
|
|
thread_status_t status, int count); |
|
415 |
|
|
416 |
/* Set scheduling policy for THREAD to POLICY. Scheduling priority specified |
/* Set scheduling policy for THREAD to POLICY. Scheduling priority specified |
417 |
with PRIORITY. */ |
with PRIORITY. */ |