diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-02-01 02:23:07 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-02-05 11:57:56 +0100 |
commit | de74f85990dc39bc6723f046f83d4e53c45f4343 (patch) | |
tree | b6fc1e172728f190095342b3d1597d43402c572a /kern/task.h | |
parent | 32dcfafb3b8cdc22641254d50571b8be1d33fae3 (diff) | |
download | gnumach-de74f85990dc39bc6723f046f83d4e53c45f4343.tar.gz gnumach-de74f85990dc39bc6723f046f83d4e53c45f4343.tar.bz2 gnumach-de74f85990dc39bc6723f046f83d4e53c45f4343.zip |
kern: implement task_set_name
task_set_name sets the name of a task. This is a debugging aid. The
name will be used in error messages printed by the kernel.
* kern/task.c (task_set_name): New function.
* kern/task.h (task_set_name): New declaration.
Diffstat (limited to 'kern/task.h')
-rw-r--r-- | kern/task.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kern/task.h b/kern/task.h index 7ae10cde..3c10dc0c 100644 --- a/kern/task.h +++ b/kern/task.h @@ -39,6 +39,7 @@ #include <mach/time_value.h> #include <mach/mach_param.h> #include <mach/task_info.h> +#include <mach_debug/mach_debug_types.h> #include <kern/kern_types.h> #include <kern/lock.h> #include <kern/queue.h> @@ -169,6 +170,9 @@ extern kern_return_t task_assign( extern kern_return_t task_assign_default( task_t task, boolean_t assign_threads); +extern kern_return_t task_set_name( + task_t task, + kernel_debug_name_t name); extern void consider_task_collect(void); /* |