summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-07-16 00:51:05 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:16 +0200
commitcebb3e599473c53b5faa759f20da8279367bed69 (patch)
treeef8a1157c5be9235ec7772f31e5f1a2098d01e48 /kern/thread.h
parentf1b261205a9bc1533af851e6fc41f2af6e8e1188 (diff)
2008-07-15 Barry deFreese <bddebian@comcast.net>
* ipc/ipc_kmsg.c: Include <vm/vm_user.h> and <ipc/ipc_hash.h>. * ipc/ipc_mqueue (ipc_mqueue_copyin): Add prototype. * kern/bootstrap.c: Include <vm/vm_user.h>. * kern/exceptions.c: Include <ipc/ipc_notify.h>. * kern/ipc_kobject.h (ipc_kobject_notify): Add prototype. * kern/ipc_mig.c: Include <device/dev_hdr.h>. * kern/pc_sample.c: Include <machine/trap.h>. * kern/printf.h (safe_gets): Add prototype. * kern/processor.c: Include <kern/ipc_tt.h>. * kern/queue.h (insque): Add prototype. * kern/startup.c: Include <kern/mach_factor.h> and <kern/xpr.h>. * kern/thread.h (thread_start, kernel_thread, thread_priority, thread_set_own_priority, thread_max_priority, thread_policy, consider_thread_collect, stack_privilege): Add prototypes. * kern/timer.h (timer_normalize, timer_init, init_timers): Add prototypes. * vm/vm_map.h (vm_map_lookup_entry, vm_map_entry_delete): Add prototypes.
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h
index 18905f5..03522da 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -265,6 +265,31 @@ extern kern_return_t thread_resume(
thread_t thread);
extern kern_return_t thread_abort(
thread_t thread);
+extern void thread_start(
+ thread_t thread,
+ continuation_t start);
+extern thread_t kernel_thread(
+ task_t task,
+ continuation_t start,
+ void *arg);
+extern kern_return_t thread_priority(
+ thread_t thread,
+ int priority,
+ boolean_t set_max);
+extern void thread_set_own_priority(
+ int priority);
+extern kern_return_t thread_max_priority(
+ thread_t thread,
+ processor_set_t pset,
+ int max_priority);
+extern kern_return_t thread_policy(
+ thread_t thread,
+ int policy,
+ int data);
+extern void consider_thread_collect(
+ void);
+extern void stack_privilege(
+ thread_t thread);
extern kern_return_t thread_get_state(
thread_t thread,
int flavor,